public function bindValue($statement, $name, $value, $dataType = null)
    {
        if ($dataType === null) {
            $statement->bindValue($name, $value, $this->getPdoType(gettype($value)));
        } else {
            $statement->bindValue($name, $value, $dataType);
        }
    }
public function bindValue($statement, $name, $value, $dataType = null)
    {
        if ($dataType === null) {
            $statement->bindValue($name, $value, $this->getPdoType(gettype($value)));
        } else {
            $statement->bindValue($name, $value, $dataType);
        }
    }
public function bindValue ( $ statement , $ name , $ value , $ dataType = null ) { if ( $ dataType === null ) { $ statement -> bindValue ( $ name , $ value , $ this -> getPdoType ( gettype ( $ value ) ) ) ; } else { $ statement -> bindValue ( $ name , $ value , $ dataType ) ; } }
Binds a value to a parameter.

@param \PDOStatement $statement
@param mixed         $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 integer       $dataType SQL data type of the parameter. If null, the type is determined by the PHP type
of the value.

@see http://www.php.net/manual/en/function.PDOStatement-bindValue.php
Binds a value to a parameter .