framework/db/Command.php
public function bindValue($name, $value, $dataType = null)
    {
        if ($dataType === null) {
            $dataType = $this->db->getSchema()->getPdoType($value);
        }
        $this->_pendingParams[$name] = [$value, $dataType];
        $this->params[$name] = $value;

        return $this;
    }
public function bindValue($name, $value, $dataType = null)
    {
        if ($dataType === null) {
            $dataType = $this->db->getSchema()->getPdoType($value);
        }
        $this->_pendingParams[$name] = [$value, $dataType];
        $this->params[$name] = $value;

        return $this;
    }
public function bindValue ( $ name , $ value , $ dataType = null ) { if ( $ dataType === null ) { $ dataType = $ this -> db -> getSchema ( ) -> getPdoType ( $ value ) ; } $ this -> _pendingParams [ $ name ] = [ $ value , $ dataType ] ; $ this -> params [ $ name ] = $ value ; return $ this ; }
Binds a value to a parameter.
@param string|int $name Parameter identifier. For a prepared statement
using named placeholders, this will be a parameter name of
the form `:name`. For a prepared statement using question mark
placeholders, this will be the 1-indexed position of the parameter.
@param mixed $value The value to bind to the parameter
@param int $dataType SQL data type of the parameter. If null, the type is determined by the PHP type of the value.
@return $this the current command being executed
@see https://secure.php.net/manual/en/function.PDOStatement-bindValue.php
Binds a value to a parameter .