ILIAS
Release_4_0_x_branch Revision 61816
|
Public Member Functions | |
& | executeStoredProc ($name, $params=null, $types=null, $result_class=true, $result_wrap_class=false) |
Execute a stored procedure and return any results. | |
functionTable () | |
return string for internal table used when calling only a function | |
now ($type= 'timestamp') | |
Return string to call a variable with the current timestamp inside an SQL statement There are three special variables for current date and time: | |
substring ($value, $position=1, $length=null) | |
return string to call a function to get a substring inside an SQL statement | |
concat ($value1, $value2) | |
Returns string to concatenate two or more string parameters. | |
random () | |
return string to call a function to get random value inside an SQL statement | |
lower ($expression) | |
return string to call a function to lower the case of an expression | |
upper ($expression) | |
return string to call a function to upper the case of an expression | |
guid () | |
Returns global unique identifier. | |
Public Member Functions inherited from MDB2_Module_Common | |
__construct ($db_index) | |
Constructor. | |
MDB2_Module_Common ($db_index) | |
PHP 4 Constructor. | |
& | getDBInstance () |
Get the instance of MDB2 associated with the module instance. |
Additional Inherited Members | |
Data Fields inherited from MDB2_Module_Common | |
$db_index |
Definition at line 61 of file Common.php.
MDB2_Driver_Function_Common::concat | ( | $value1, | |
$value2 | |||
) |
Returns string to concatenate two or more string parameters.
string | $value1 | |
string | $value2 | |
string | $values,... |
Reimplemented in MDB2_Driver_Function_mysql.
Definition at line 158 of file Common.php.
& MDB2_Driver_Function_Common::executeStoredProc | ( | $name, | |
$params = null , |
|||
$types = null , |
|||
$result_class = true , |
|||
$result_wrap_class = false |
|||
) |
Execute a stored procedure and return any results.
string | $name | string that identifies the function to execute |
mixed | $params | array that contains the paramaters to pass the stored proc |
mixed | $types | array that contains the types of the columns in the result set |
mixed | $result_class | string which specifies which result class to use |
mixed | $result_wrap_class | string which specifies which class to wrap results in |
Reimplemented in MDB2_Driver_Function_mysql, and MDB2_Driver_Function_oci8.
Definition at line 77 of file Common.php.
References $error, MDB2_Module_Common\getDBInstance(), PEAR\isError(), and MDB2_ERROR_UNSUPPORTED.
MDB2_Driver_Function_Common::functionTable | ( | ) |
return string for internal table used when calling only a function
Reimplemented in MDB2_Driver_Function_oci8.
Definition at line 98 of file Common.php.
MDB2_Driver_Function_Common::guid | ( | ) |
Returns global unique identifier.
Reimplemented in MDB2_Driver_Function_oci8, and MDB2_Driver_Function_mysql.
Definition at line 217 of file Common.php.
References $error, MDB2_Module_Common\getDBInstance(), PEAR\isError(), and MDB2_ERROR_UNSUPPORTED.
MDB2_Driver_Function_Common::lower | ( | $expression | ) |
return string to call a function to lower the case of an expression
string | $expression |
Definition at line 188 of file Common.php.
MDB2_Driver_Function_Common::now | ( | $type = 'timestamp' | ) |
Return string to call a variable with the current timestamp inside an SQL statement There are three special variables for current date and time:
Reimplemented in MDB2_Driver_Function_oci8.
Definition at line 116 of file Common.php.
References $type.
MDB2_Driver_Function_Common::random | ( | ) |
return string to call a function to get random value inside an SQL statement
Reimplemented in MDB2_Driver_Function_oci8.
Definition at line 173 of file Common.php.
MDB2_Driver_Function_Common::substring | ( | $value, | |
$position = 1 , |
|||
$length = null |
|||
) |
return string to call a function to get a substring inside an SQL statement
Reimplemented in MDB2_Driver_Function_oci8.
Definition at line 138 of file Common.php.
MDB2_Driver_Function_Common::upper | ( | $expression | ) |
return string to call a function to upper the case of an expression
string | $expression |
Definition at line 203 of file Common.php.