绑定预处理参数
@param string|int $name
@param mixed $value
@param int $dataType
@return static
5746
public function bindValue($name, $value, $dataType = \PDO::PARAM_STR)
    {
        $this->binds[$name] = $value;
        return $this;
    }
1252472
protected function addQuery( string $name, $value ): self
	{
		if (!is_null($value))
		{
			$this->query_data[$name] = $value;
		}

		return $this;
	}
1323821
public static function request(String $name = NULL, $value = NULL)
    {
        return self::_method($name, $value, $_REQUEST, __FUNCTION__);
    }
270354
public function with(string $name, $value, ?int $code = null)
  {
    $this->with = array_merge([$name => $value], $this->with);

    if ($code != null) {
      $this->code = $code;
      return $this->send();
    }

    return $this;
  }
1225644
public static function Set ($name, $value = null) {
		if (!is_array($name)) {
			$ini_set = [$name => $value];
		} else {
			$ini_set = $name;
		}

		$ret = [];
		foreach ($ini_set as $name => $value) {
			if (!static::Updatable($name)) {
				throw CoreException::RaiseSystemError('設定を変更できない設定値を渡されました。name:%s, value:%s', [$name, $value]);
			}
			$ret[$name] = ini_set($name, $value);
		}

		if (count($ret) === 1) {
			return current($ret);
		}

		return $ret;
	}
770989
public function createLiteral($value, $datatype = null, $lang = null)
    {
        if ($datatype !== null) {
            if (!$datatype instanceof Node) {
                $datatype = $this->createNamedNode($datatype);
            } elseif (!$datatype->isNamed()) {
                throw new \Exception('Argument datatype has to be a named node.');
            }
        }

        return new LiteralImpl($value, $datatype, $lang);
    }
1046358
public function dataset(string $name, string $type, $data)
    {
        if ($data instanceof Collection) {
            $data = $data->toArray();
        }

        $dataset = new $this->dataset($name, $type, $data);

        array_push($this->datasets, $dataset);

        return $dataset;
    }
758771
public function setRelation($name, $value, $data = [])
    {
        // 检测修改器
        $method = 'set' . Db::parseName($name, 1) . 'Attr';

        if (method_exists($this, $method)) {
            $value = $this->$method($value, array_merge($this->data, $data));
        }

        $this->relation[$name] = $value;

        return $this;
    }
1372038
public static function invalidType($name, $value, $expectedType)
    {
        return new static(sprintf('Expected %s to have type "%s" but found "%s"', $name, $expectedType, is_object($value) ? get_class($value) : gettype($value)));
    }
875690
public function set(string $name, string $value)
    {
        $this->values[$name] = $value;
        return $this;
    }
1057510
static function file($name, $value, $attr = array())
    {
        $attr = array_merge(
            array(
                "type" => "file"
            ),
            $attr
        );

        self::input($name, $value, $attr);
    }
608033
public function setParameter($name, $value, $type = null)
    {
        $this->filter->setParameter($name, $value, $type);

        return $this;
    }
357969
public function assignAttribute($name, $value)
	{
		$table = static::table();
		if (!is_object($value)) {
			if (array_key_exists($name, $table->columns)) {
				$value = $table->columns[$name]->cast($value, static::connection());
			} else {
				$col = $table->getColumnByInflectedName($name);
				if (!is_null($col)){
					$value = $col->cast($value, static::connection());
				}
			}
		}

		// convert php's \DateTime to ours
		if ($value instanceof \DateTime) {
			$value = new DateTime($value->format('Y-m-d H:i:s T'));
		}

		// make sure DateTime values know what model they belong to so
		// dirty stuff works when calling set methods on the DateTime object
		if ($value instanceof DateTime) {
			$value->attributeOf($this, $name);
		}

		$this->_attributes[$name] = $value;
		$this->flagDirty($name);
		return $value;
	}
689502
public function data($name, $value = NULL)
	{
		if (func_num_args() === 1) {
			$this->attrs['data'] = $name;
		} else {
			$this->attrs["data-$name"] = is_bool($value) ? json_encode($value) : $value;
		}

		return $this;
	}
396355
static function create( $dataTypeString )
    {
        $def = null;
        if ( !isset( $GLOBALS["eZDataTypes"][$dataTypeString] ) )
        {
            eZDataType::loadAndRegisterType( $dataTypeString );
        }

        if ( isset( $GLOBALS['eZDataTypes'][$dataTypeString] ) )
        {
            $className = $GLOBALS['eZDataTypes'][$dataTypeString];

            if ( !isset( $GLOBALS["eZDataTypeObjects"][$dataTypeString] ) ||
                 get_class( $GLOBALS["eZDataTypeObjects"][$dataTypeString] ) != $className )
            {
                $GLOBALS["eZDataTypeObjects"][$dataTypeString] = new $className();
            }
            return $GLOBALS["eZDataTypeObjects"][$dataTypeString];
        }

        return null;
    }
570464
public function set($name, $value=null)
    {   
        if ($name instanceof Query) {
            parent::set($name);
            return $this;
        } elseif (is_array($name)) {
            foreach ($name as $k => $v) {
                $this->set($k, $v);
            }
            return $this;
        } elseif (is_numeric($name)) {
            $this->set('where', $name);
            return $this;
        }
        
        if (!empty($value)) {
            if ($name == 'type') {
                $this->type($value);
            } elseif (in_array($name, array('distinct', 'group', 'having', 'order', 'limit', 'page', 'pagesize', 'start', 'result_key'))) {
                $this->data[$name] = is_array($value) ? $value : array($value);
            } elseif (in_array($name, ['set', 'values', 'data'])) { // data
                if (!isset($this->data[$name])) $this->data[$name] = [];
                
                if (is_array($value) && isset($value[0])) {
                    $this->data[$name] += $value;
                } else {
                    $this->data[$name][] = $value;
                }
            } elseif ($name == 'join' || $name == 'leftjoin') {
                $name = 'join';
                if (!isset($this->data[$name])) $this->data[$name] = [];
                if (is_array($value) && isset($value[0])) {
                    if (is_array($value[0]) || (isset($value[1]) && is_string($value[1]) && preg_match('/\s+as\s+/', $value[1])) ) {
                        $this->data[$name] += $value;
                    } else {
                        $this->data[$name][] = $value;
                    }
                } else {
                    $this->data[$name][] = $value;
                }
            } else {
                if ($name == 'select') { // select == fields
                    $this->type($name);
                    $name = 'fields';
                } elseif (in_array($name, ['insert', 'update', 'delete'])) { // table
                    $this->type($name);
                    $name = 'table';
                } elseif (in_array($name, ['table', 'from'])) {
                    $name = 'table';
                } elseif ($name == 'count') {
                    $this->data['count'] = 1;
                    $name = 'fields';
                    if (strpos($value, 'count') === false) $value = 'count(' . $value . ')';
                } 
                
                if (is_array($value)) {
                    $this->data[$name] = isset($this->data[$name]) ? array_merge($this->data[$name], $value) : $value;
                } else {
                    $this->data[$name][] = $value;
                }
            }
        } elseif (in_array($name, ['select', 'insert', 'update', 'delete'])) {
            $this->type($name);
        } elseif ($name == 'count') {
            $this->data['count'] = 1;
        }
        
        return $this;
    }
820613
protected static function parseFieldValue($name, $value) {
		$field	= static::$validator->getField($name);
		if( $field ) {
			$field->getType()->parseValue($field, $value);
		}
		return parent::parseFieldValue($name, $value);
	}