Свойство | Type | Description | |
---|---|---|---|
$_keys | array | Column names. | |
$_meta | array | ||
$_values | array | Fetched result values. |
Méthode | Description | |
---|---|---|
_execute ( array $params = null ) : boolean | Executes a prepared statement. | |
_prepare ( string $sql ) : void | ||
close ( ) : boolean | Closes the cursor and the statement. | |
closeCursor ( ) : boolean | Closes the cursor, allowing the statement to be executed again. | |
columnCount ( ) : integer | Returns the number of columns in the result set. | |
errorCode ( ) : string | Retrieves the error code, if any, associated with the last operation on the statement handle. | |
errorInfo ( ) : array | Retrieves an array of error information, if any, associated with the last operation on the statement handle. | |
fetch ( integer $style = null, integer $cursor = null, integer $offset = null ) : mixed | Fetches a row from the result set. | |
nextRowset ( ) : boolean | Retrieves the next rowset (result set) for a SQL statement that has multiple result sets. An example is a stored procedure that returns the results of multiple queries. | |
rowCount ( ) : integer | Returns the number of rows affected by the execution of the last INSERT, DELETE, or UPDATE statement executed by this statement object. |
Méthode | Description | |
---|---|---|
_bindParam ( mixed $parameter, mixed &$variable, mixed $type = null, mixed $length = null, mixed $options = null ) : boolean | Binds a parameter to the specified variable name. |
protected _bindParam ( mixed $parameter, mixed &$variable, mixed $type = null, mixed $length = null, mixed $options = null ) : boolean | ||
$parameter | mixed | Name the parameter, either integer or string. |
$variable | mixed | Reference to PHP variable containing the value. |
$type | mixed | OPTIONAL Datatype of SQL parameter. |
$length | mixed | OPTIONAL Length of SQL parameter. |
$options | mixed | OPTIONAL Other options. |
Résultat | boolean |
public closeCursor ( ) : boolean | ||
Résultat | boolean |
public columnCount ( ) : integer | ||
Résultat | integer | The number of columns. |
public fetch ( integer $style = null, integer $cursor = null, integer $offset = null ) : mixed | ||
$style | integer | OPTIONAL Fetch mode for this fetch operation. |
$cursor | integer | OPTIONAL Absolute, relative, or other. |
$offset | integer | OPTIONAL Number for absolute or relative cursors. |
Résultat | mixed | Array, object, or scalar depending on fetch mode. |
public nextRowset ( ) : boolean | ||
Résultat | boolean |