ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
__construct (&$db, &$statement, $positions, $query, $types, $result_types, $is_manip=false, $limit=null, $offset=null) | |
Constructor. More... | |
MDB2_Statement_Common (&$db, &$statement, $positions, $query, $types, $result_types, $is_manip=false, $limit=null, $offset=null) | |
PHP 4 Constructor. More... | |
bindValue ($parameter, $value, $type=null) | |
Set the value of a parameter of a prepared query. More... | |
bindValueArray ($values, $types=null) | |
Set the values of multiple a parameter of a prepared query in bulk. More... | |
bindParam ($parameter, &$value, $type=null) | |
Bind a variable to a parameter of a prepared query. More... | |
bindParamArray (&$values, $types=null) | |
Bind the variables of multiple a parameter of a prepared query in bulk. More... | |
& | execute ($values=null, $result_class=true, $result_wrap_class=false) |
Execute a prepared query statement. More... | |
& | _execute ($result_class=true, $result_wrap_class=false) |
Execute a prepared query statement helper method. More... | |
free () | |
Release resources allocated for the specified prepared query. More... | |
Data Fields | |
$db | |
$statement | |
$query | |
$result_types | |
$types | |
$values = array() | |
$limit | |
$offset | |
$is_manip | |
MDB2_Statement_Common::__construct | ( | & | $db, |
& | $statement, | ||
$positions, | |||
$query, | |||
$types, | |||
$result_types, | |||
$is_manip = false , |
|||
$limit = null , |
|||
$offset = null |
|||
) |
& MDB2_Statement_Common::_execute | ( | $result_class = true , |
|
$result_wrap_class = false |
|||
) |
Execute a prepared query statement helper method.
mixed | specifies which result class to use |
mixed | specifies which class to wrap results in |
private
Definition at line 4120 of file MDB2.php.
References $query, $result, $type, PEAR\isError(), and MDB2_ERROR_NOT_FOUND.
MDB2_Statement_Common::bindParam | ( | $parameter, | |
& | $value, | ||
$type = null |
|||
) |
Bind a variable to a parameter of a prepared query.
int | the order number of the parameter in the query statement. The order number of the first parameter is 1. |
mixed | variable that is meant to be bound to specified parameter. The type of the value depends on the $type argument. |
string | specifies the type of the field |
public
Definition at line 4027 of file MDB2.php.
References $type, MDB2_ERROR_NOT_FOUND, and MDB2_OK.
MDB2_Statement_Common::bindParamArray | ( | & | $values, |
$types = null |
|||
) |
Bind the variables of multiple a parameter of a prepared query in bulk.
array | specifies all necessary information for bindParam() the array elements must use keys corresponding to the number of the position of the parameter. |
array | specifies the types of the fields |
public
Definition at line 4059 of file MDB2.php.
References $key, PEAR\isError(), and MDB2_OK.
MDB2_Statement_Common::bindValue | ( | $parameter, | |
$value, | |||
$type = null |
|||
) |
Set the value of a parameter of a prepared query.
int | the order number of the parameter in the query statement. The order number of the first parameter is 1. |
mixed | value that is meant to be assigned to specified parameter. The type of the value depends on the $type argument. |
string | specifies the type of the field |
public
Definition at line 3966 of file MDB2.php.
References $type, MDB2_ERROR_NOT_FOUND, and MDB2_OK.
MDB2_Statement_Common::bindValueArray | ( | $values, | |
$types = null |
|||
) |
Set the values of multiple a parameter of a prepared query in bulk.
array | specifies all necessary information for bindValue() the array elements must use keys corresponding to the number of the position of the parameter. |
array | specifies the types of the fields |
public
Definition at line 3998 of file MDB2.php.
References $key, PEAR\isError(), and MDB2_OK.
& MDB2_Statement_Common::execute | ( | $values = null , |
|
$result_class = true , |
|||
$result_wrap_class = false |
|||
) |
Execute a prepared query statement.
array | specifies all necessary information for bindParam() the array elements must use keys corresponding to the number of the position of the parameter. |
mixed | specifies which result class to use |
mixed | specifies which class to wrap results in |
public
Definition at line 4088 of file MDB2.php.
References $result, array, PEAR\isError(), and MDB2_ERROR.
MDB2_Statement_Common::free | ( | ) |
Release resources allocated for the specified prepared query.
public
Definition at line 4166 of file MDB2.php.
References MDB2_ERROR, and MDB2_OK.
MDB2_Statement_Common::MDB2_Statement_Common | ( | & | $db, |
& | $statement, | ||
$positions, | |||
$query, | |||
$types, | |||
$result_types, | |||
$is_manip = false , |
|||
$limit = null , |
|||
$offset = null |
|||
) |
PHP 4 Constructor.
Definition at line 3945 of file MDB2.php.