[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/vendor/creole/ -> CallableStatement.php (sommaire)

(pas de description)

Poids: 135 lignes (6 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

CallableStatement:: (11 méthodes):
  registerOutParameter()
  getArray()
  getBoolean()
  getBlob()
  getClob()
  getDate()
  getFloat()
  getInt()
  getString()
  getTime()
  getTimestamp()


Interface: CallableStatement  - X-Ref

Interface for callable statements.

registerOutParameter($paramIndex, $sqlType, $maxLength = null)   X-Ref
Register a parameter as an output param.

param: string $paramIndex The stored procedure param name (e.g. @val1).
param: int $sqlType The type of the parameter (e.g. Type::BIT)
param: int $maxLength The maximum expected length (size) of output parameter.

getArray($paramIndex)   X-Ref

param: mixed $paramIndex Parameter name (e.g. "@var1").
return: array

getBoolean($paramIndex)   X-Ref

param: mixed $paramIndex Parameter name (e.g. "@var1").
return: boolean

getBlob($paramIndex)   X-Ref

param: mixed $paramIndex Parameter name (e.g. "@var1").
return: Blob blob object

getClob($paramIndex)   X-Ref

param: mixed $paramIndex Column name (string) or index (int).
return: Clob clob object.

getDate($column, $format = '%x')   X-Ref
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.

param: mixed $column Column name (string) or index (int) starting with 1 (if ResultSet::FETCHMODE_NUM was used).
param: string $format Date formatter for use w/ strftime() or date() (it will choose based on examination of format string)
return: mixed  Formatted date, or integer unix timestamp (using 00:00:00 for time) if $format was null.

getFloat($paramIndex)   X-Ref

param: mixed $paramIndex Column name (string) or index (int).
return: float

getInt($paramIndex)   X-Ref

param: mixed $paramIndex Column name (string) or index (int).
return: int

getString($paramIndex)   X-Ref

param: mixed $paramIndex Column name (string) or index (int).
return: string

getTime($column, $format = '%X')   X-Ref
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.

param: mixed $column Column name (string) or index (int) starting with 1 (if ResultSet::FETCHMODE_NUM was used).
param: string $format Date formatter for use w/ strftime() or date() (it will choose based on examination of format string)
return: mixed  Formatted time, or integer unix timestamp (using today's date) if $format was null.

getTimestamp($column, $format = 'Y-m-d H:i:s')   X-Ref
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.

param: mixed $column Column name (string) or index (int) starting with 1 (if ResultSet::FETCHMODE_NUM was used).
param: string $format Date formatter for use w/ strftime() or date() (it will choose based on examination of format string)
return: mixed Formatted timestamp, or integer unix timestamp (if $format was null)



Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7