设置数据
@param string $name
@param mixed $value
@return boolean
511080
public static function set($name, $value = null)
	{
		$names = parseCfgName($name);
		if (isset($names[0]))
		{
			$first = array_shift($names);
			$obj = self::getInstance($first);
			if ($obj)
			{
				return $obj->setVal($names, $value);
			}
			else
			{
				return false;
			}
		}
		else
		{
			return false;
		}
	}
177779
protected function _propertySet($name, $value) {
        if (array_key_exists($name, $this->_properties)) {
            if ($this->_properties[$name] !== $value) {
                $this->_properties[$name] = $value;
                $this->_modified[$name] = $value;
                return 1;
            }
            return 0;
        }
        return false;
    }
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;
    }
373613
public function config($name, $value = null) {
        if (is_array($name)) {
            $this->config = array_merge($this->config, $name);
        }
        elseif (is_null($value)) {
            return isset($this->config[$name]) ? $this->config[$name] : null;
        }
        else {
            $this->config[$name] = $value;
        }
    }
28594
public function addHeader(string $name, string $value): bool
    {

        /* Initialize the return value */
        $isSet = false;

        /* If the given parameters aren't empty */
        if (!empty($name) && !empty($value)) {

            /* Assign the values */
            $this->offsetSet($name, $value);
            $isSet = true;
        }

        return $isSet;
    }
437511
public function __isset($name)
    {
        if (is_object($this->value)) {
            return isset($this->value->{$name});
        }

        if (is_array($this->value) || $this->value instanceof ArrayObject) {
            return isset($this->value[$name]);
        }

        return false;
    }
140029
protected function ip($name, $value){
        //Si no se completo no se valida
        if(! $this->isComplete($value)){
            return TRUE;
        }
        if(! filter_var($value, FILTER_VALIDATE_IP)){
            $this->add_message($name, 'ip');
            return FALSE;
        }
        return TRUE;
    }
1328242
private function set($name, $value)
	{
		if (property_exists($this, $name))
		{
			$this->$name = $value;
			$this->attributes[$name] = $value;
			return true;
		}

		return false;
	}
52853
public function __isset($name)
    {
        // 存在字段映射，则被映射的对象属性必能访问
        if($this->columnMap && key_exists($name, $this->columnMap)) {
            // 显式声明属性名
            $attr = $this->columnMap[$name];
            return !is_null($this->$attr);
        }

        return key_exists($name, $this->attrs);
    }
825363
public function hasAttributeValue($name, $value = null)
    {
        if (!$this->hasAttribute($name)) {
            return false;
        }
        return (empty($value))? true : (array_search($value, $this->getArrayAttribute($name)) !== false);
    }
1048194
private function IsLegalValue($Name, $ClassName, $Value)
        {
            // 取得合法資料內容
            $ReflectionObject = new ReflectionClass($ClassName);
            $ContentList = $ReflectionObject->getConstants();
            unset($ReflectionObject);

            // 檢查是否為合法資料
            if (! in_array($Value, $ContentList)) {
                throw new Exception('Illegal '.$Name.'.');
            }
        }
980491
public function set($name, $value = null)
    {
        if (is_array($name))
        {
            // 如果传入数组就合并当前数据
            $this->data = ArrayUtil::recursiveMerge($this->data, $name);
        }
        else
        {
            // 设置数据
            $this->data[$name] = $value;
        }
        return true;
    }
1136457
public static function setEnv($name, $value = false)
    {
        $unset = false === $value;

        if (!putenv($unset ? $name : $name.'='.$value)) {
            return false;
        }

        if ($unset) {
            unset($_SERVER[$name]);
        } else {
            $_SERVER[$name] = $value;
        }
        return true;
    }
658121
public function setProperty(string $name, $value)
    {
        if (isset($this->properties[$name])) {
            $this->properties[$name] = $value;
            return true;
        }

        return false;
    }
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;
    }
1023347
public function updateAttribute($name, $value)
	{
		$this->__set($name, $value);
		return $this->update(false);
	}
861604
public static function post( $name = '', $value = '' ) {

		if ( ! empty( $value ) ) {
			$_POST[ $name ] = $value;
		}

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

	}