db\Exception __toString()

__toString() public method public string __toString ( )return string Readable representation of exception

db\Exception __construct()

__construct() public method Constructor. public void __construct ( $message, $errorInfo = [], $code = 0, Exception $previous = null )$message string PDO error message $errorInfo array PDO error info $code integer PDO error code $previous Exception The previous exception used for the exception chaining.

db\Exception getName()

getName() public method public string getName ( )return string The user-friendly name of this exception

db\Exception $errorInfo

$errorInfo public property The error info provided by a PDO exception. This is the same as returned by PDO::errorInfo. public array $errorInfo = []

db\DataReader __construct()

__construct() public method Constructor. public void __construct ( yii\db\Command $command, $config = [] )$command yii\db\Command The command generating the query result $config array Name-value pairs that will be used to initialize the object properties

db\DataReader valid()

valid() public method Returns whether there is a row of data at current position. This method is required by the interface Iterator. public boolean valid ( )return boolean Whether there is a row of data at current position.

db\DataReader setFetchMode()

setFetchMode() public method Set the default fetch mode for this statement See also http://www.php.net/manual/en/function.PDOStatement-setFetchMode.php. public void setFetchMode ( $mode )$mode integer Fetch mode

db\DataReader rewind()

rewind() public method Resets the iterator to the initial state. This method is required by the interface Iterator. public void rewind ( )throws yii\base\InvalidCallException if this method is invoked twice

db\DataReader readObject()

readObject() public method Returns an object populated with the next row of data. public mixed readObject ( $className, $fields )$className string Class name of the object to be created and populated $fields array Elements of this array are passed to the constructor return mixed The populated object, false if no more row of data available

db\DataReader readColumn()

readColumn() public method Returns a single column from the next row of a result set. public mixed readColumn ( $columnIndex )$columnIndex integer Zero-based column index return mixed The column of the current row, false if no more rows available