Public Member Functions | |
registerOutParameter ($paramIndex, $sqlType, $maxLength=null) | |
Register a parameter as an output param. | |
getArray ($paramIndex) | |
getBoolean ($paramIndex) | |
getBlob ($paramIndex) | |
getClob ($paramIndex) | |
getDate ($column, $format= '%x') | |
Return a formatted date. | |
getFloat ($paramIndex) | |
getInt ($paramIndex) | |
getString ($paramIndex) | |
getTime ($column, $format= '%X') | |
Return a formatted time. | |
getTimestamp ($column, $format= 'Y-m-d H:i:s') | |
Return a formatted timestamp. |
Definition at line 31 of file CallableStatement.php.
CallableStatement::getArray | ( | $ | paramIndex | ) |
mixed | $paramIndex Parameter name (e.g. "@var1"). |
SQLException | if $paramIndex was not bound as output variable. |
Implemented in MSSQLCallableStatement.
CallableStatement::getBlob | ( | $ | paramIndex | ) |
mixed | $paramIndex Parameter name (e.g. "@var1"). |
SQLException | if $paramIndex was not bound as output variable. |
Implemented in MSSQLCallableStatement.
CallableStatement::getBoolean | ( | $ | paramIndex | ) |
mixed | $paramIndex Parameter name (e.g. "@var1"). |
SQLException | if $paramIndex was not bound as output variable. |
Implemented in MSSQLCallableStatement.
CallableStatement::getClob | ( | $ | paramIndex | ) |
mixed | $paramIndex Column name (string) or index (int). |
Implemented in MSSQLCallableStatement.
CallableStatement::getDate | ( | $ | column, | |
$ | format = '%x' | |||
) |
Return a formatted date.
The default format for dates returned is preferred (in your locale, as specified using setlocale()) format w/o time (i.e. strftime("%x", $val)). Override this by specifying a format second parameter. You can also specify a date()-style formatter; if you do, make sure there are no "%" symbols in your format string.
mixed | $column Column name (string) or index (int) starting with 1 (if ResultSet::FETCHMODE_NUM was used). | |
string | $format Date formatter for use w/ strftime() or date() (it will choose based on examination of format string) If format is NULL, then the integer unix timestamp will be returned (no formatting performed). |
SQLException | - If the column specified is not a valid key in current field array. |
Implemented in MSSQLCallableStatement.
CallableStatement::getFloat | ( | $ | paramIndex | ) |
mixed | $paramIndex Column name (string) or index (int). |
Implemented in MSSQLCallableStatement.
CallableStatement::getInt | ( | $ | paramIndex | ) |
mixed | $paramIndex Column name (string) or index (int). |
Implemented in MSSQLCallableStatement.
CallableStatement::getString | ( | $ | paramIndex | ) |
mixed | $paramIndex Column name (string) or index (int). |
Implemented in MSSQLCallableStatement.
CallableStatement::getTime | ( | $ | column, | |
$ | format = '%X' | |||
) |
Return a formatted time.
The default format for times returned is preferred (in your locale, as specified using setlocale()) format w/o date (i.e. strftime("%X", $val)). Override this by specifying a format second parameter. You can also specify a date()-style formatter; if you do, make sure there are no "%" symbols in your format string.
mixed | $column Column name (string) or index (int) starting with 1 (if ResultSet::FETCHMODE_NUM was used). | |
string | $format Date formatter for use w/ strftime() or date() (it will choose based on examination of format string) If format is NULL, then the integer unix timestamp will be returned (no formatting performed). |
SQLException | - If the column specified is not a valid key in current field array. |
Implemented in MSSQLCallableStatement.
CallableStatement::getTimestamp | ( | $ | column, | |
$ | format = 'Y-m-d H:i:s' | |||
) |
Return a formatted timestamp.
The default format for timestamp is ISO standard YYYY-MM-DD HH:MM:SS (i.e. date('Y-m-d H:i:s', $val). Override this by specifying a format second parameter. You can also specify a strftime()-style formatter.
Hint: if you want to get the unix timestamp use the "U" formatter string.
mixed | $column Column name (string) or index (int) starting with 1 (if ResultSet::FETCHMODE_NUM was used). | |
string | $format Date formatter for use w/ strftime() or date() (it will choose based on examination of format string) If format is NULL, then the integer unix timestamp will be returned (no formatting performed). |
SQLException | - If the column specified is not a valid key in current field array. |
Implemented in MSSQLCallableStatement.
CallableStatement::registerOutParameter | ( | $ | paramIndex, | |
$ | sqlType, | |||
$ | maxLength = null | |||
) |
Register a parameter as an output param.
string | $paramIndex The stored procedure param name (e.g. ). | |
int | $sqlType The type of the parameter (e.g. Type::BIT) | |
int | $maxLength The maximum expected length (size) of output parameter. |
Implemented in MSSQLCallableStatement.