Regla es_string: analiza que el campo sea un string
-Si no es cargada no se controla
@param string $name
@param mixed $value
@return boolean
518580
protected function is_string($name, $value){
        //Si no se completo no se valida
        if(! $this->isComplete($value)){
            return TRUE;
        }
        if(!is_string($value)){
            $this->add_message($name, 'is_string');
            return FALSE;
        }
        return TRUE;
    }
679979
public static function string(string $name, ?string $value = null, int $expire = 0): RedisString
    {
        //创建String对象
        $string = new RedisString(self::handle(), $name);

        //设置值
        if (!is_null($value)) {
            $string->set($value, $expire);
        }

        //返回
        return $string;
    }
301187
public static function set($name, $value)
    {
        if (! strstr($name, '.')) {
            return false;
        }

        $parts = explode('.', $name, 2);
        $section = $parts[0];
        $key = $parts[1];

        self::getInstance()->add($section, array($key => $value));

        return true;
    }
1120950
protected static function splitCompoundStringIntoParts($name, $value)
    {
        if (strpos($name, '=') !== false) {
            list($name, $value) = array_map('trim', explode('=', $name, 2));
        }

        return array($name, $value);
    }
1118636
public function set($name, $value = null)
    {
        if ($name === 'value') {
            $value = htmlspecialchars($value);
        }
        parent::set($name, $value);

        return $this;
    }
140371
public static function put( $name = '', $value = '' ) {

		if ( ! empty( $value ) ) {
			$GLOBALS['_PUT'][ $name ] = $value;
		}

		if ( empty( $name ) ) {
			return ( isset( $GLOBALS['_PUT'] ) ) ? $GLOBALS['_PUT'] : NULL;
		} else {
			return ( isset( $GLOBALS['_PUT'][ $name ] ) ) ? $GLOBALS['_PUT'][ $name ] : NULL;
		}

	}
1085679
private function stringValueChecker($paramName, $value)
        {
            if (isset($this->httpConfigs[$paramName])) {
                $param = $this->httpConfigs[$paramName];
                if (strstr($param, $value) && false !== strpos($param, $value)) {
                    return true;
                } else {
                    return false;
                }
            }
            return false;
        }
808283
public function containsHeader(string $name, string $value = null): bool
    {
        if ($this->headers->contain($name)) {
            if (null !== $value) {
                return $value === $this->headers[$name];
            }

            return true;
        }

        return false;
    }
865785
public final function header(string $name, string $value = null)
    {
        return ($value === null) ? $this->getHeader($name) : $this->setHeader($name, $value);
    }
200187
private function _validate_config($name, $value)
	{
		switch ($name)
		{
			case 'cache_id':
				if (empty($value) or ! is_string($value))
				{
					$value = 'fuel';
				}
			break;

			case 'expiration':
				if (empty($value) or ! is_numeric($value))
				{
					$value = null;
				}
			break;

			default:
			break;
		}

		return $value;
	}
654811
protected function is_boolean($name, $value){
        //Si no se completo no se valida
        if(! $this->isComplete($value)){
            return TRUE;
        }
        if(! is_bool($value)){
            if($value != "0" && $value != "1"){
                $this->add_message($name, 'is_boolean');
                return FALSE;
            }
        }
        return TRUE;
    }
1241136
public function text($name = null, $value = null) 
	{
		Argument::i()
			->test(1, 'string', 'null')
			->test(2, 'scalar', 'null');
			
		$field = Text::i();
		
		if(!is_null($name)) {
			$field->setName($name);
		}
		
		if(!is_null($value)) {
			$field->setValue($value);
		}
		
		return $field;
	}
941542
public static function get($name, $value = NULL)
    {
        return isset($_GET[$name]) ? $_GET[$name] : $value;
    }
13150
protected function letters ($name, $value){
        //Si no se completo no se valida
        if(! $this->isComplete($value)){
            return TRUE;
        }
    	$expresion = '/^[a-zA-Záéíóúñ\s]*$/';
    	if(! preg_match($expresion, $value)){
            $this->add_message($name, 'letters');
            return FALSE;
    	}
        return TRUE;
    }
666501
private function validate(string $name, $value): bool
    {
        if (! isset($this->validators[$name])) {
            return true;
        }

        $errors = [];

        $isValid = true;
        foreach ($this->validators[$name] as $validator) {
            if (! $validator->is_valid($value)) {
                $errors = array_merge($errors, $validator->get_error_messages());
                $isValid = false;
            }
        }

        $element = $this->element($name);
        if ($element instanceof ErrorAwareInterface) {
            $element->withErrors($errors);
        }

        return $isValid;
    }
873024
public static function isStringable($value)
    {
        return static::isStringLike($value) || is_numeric($value) || is_bool($value) || is_null($value);
    }
320855
public function set($name, $value)
    {
        try {
            if (is_string($name) && (is_string($value) || $value === null)) {
                if ($value === null) {
                    if (!array_key_exists($name, $this->defaults)) {
                        return false;
                    }
                    $value = $this->defaults[$name];
                }
                if ((new Query)->from(static::tableName())->where(['name' => $name])->exists()) {
                    Podium::getInstance()->db->createCommand()->update(
                        static::tableName(), ['value' => $value], ['name' => $name]
                    )->execute();
                } else {
                    Podium::getInstance()->db->createCommand()->insert(
                        static::tableName(), ['name' => $name, 'value' => $value]
                    )->execute();
                }
                $this->cache->set('config', $this->notCached);
                $this->_config = null;
                return true;
            }
        } catch (Exception $e) {
            Log::error($e->getMessage(), null, __METHOD__);
        }
        return false;
    }