[ Index ] |
|
Code source de Symfony 1.0.0 |
[Code source] [Imprimer] [Statistiques]
Generic Creole types modeled on JDBC types.
Author: | David Giffin <david@giffin.org> |
Author: | Hans Lellelid <hans@xmpl.org> |
Version: | $Revision: 1.18 $ |
Poids: | 187 lignes (7 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
getType($nativeType) X-Ref |
This method returns the generic Creole (JDBC-like) type when given the native db type. param: string $nativeType DB native type (e.g. 'TEXT', 'byetea', etc.). return: int Creole native type (e.g. Types::LONGVARCHAR, Types::BINARY, etc.). |
getNativeType($creoleType) X-Ref |
This method will return a native type that corresponds to the specified Creole (JDBC-like) type. If there is more than one matching native type, then the LAST defined native type will be returned. return: string Native type string. |
getAffix($creoleType) X-Ref |
Gets the "affix" to use for ResultSet::get*() and PreparedStatement::set*() methods. <code> $setter = 'set' . CreoleTypes::getAffix(CreoleTypes::INTEGER); $stmt->$setter(1, $intval); // or $getter = 'get' . CreoleTypes::getAffix(CreoleTypes::TIMESTAMP); $timestamp = $rs->$getter(); </code> param: int $creoleType The Creole types. return: string The default affix for getting/setting cols of this type. |
getCreoleName($creoleType) X-Ref |
Given the integer type, this method will return the corresponding type name. param: int $creoleType the integer Creole type. return: string The name of the Creole type (e.g. 'VARCHAR'). |
getCreoleCode($creoleTypeName) X-Ref |
Given the name of a type (e.g. 'VARCHAR') this method will return the corresponding integer. param: string $creoleTypeName The case-sensisive (must be uppercase) name of the Creole type (e.g. 'VARCHAR'). return: int the Creole type. |
Généré le : Fri Mar 16 22:42:14 2007 | par Balluche grâce à PHPXref 0.7 |