| [ Index ] |
|
Code source de Symfony 1.0.0 |
[Code source] [Imprimer] [Statistiques]
Base class for ODBC implementation of ResultSet.
| Author: | Dave Lawson <dlawson@masterytech.com> |
| Version: | $Revision: 1.3 $ |
| Poids: | 188 lignes (6 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
| __construct(Connection $conn, $result, $fetchmode = null) X-Ref |
| close() X-Ref |
| _setOffset($offset) X-Ref |
| This function exists to set offset after ResultSet is instantiated. This function should be "protected" in Java sense: only available to classes in package. THIS METHOD SHOULD NOT BE CALLED BY ANYTHING EXCEPTION DRIVER CLASSES. param: int $offset New offset. |
| _setLimit($limit) X-Ref |
| This function exists to set limit after ResultSet is instantiated. This function should be "protected" in Java sense: only available to classes in package. THIS METHOD SHOULD NOT BE CALLED BY ANYTHING EXCEPTION DRIVER CLASSES. param: int $limit New limit. |
| getFieldNum($colname) X-Ref |
| If fetchmode is FETCHMODE_ASSOC, returns the 1-based field index number for the specified column name. Otherwise returns 0 (false). return: int |
| readLobData($column, $binmode, $curdata = null) X-Ref |
| Reads in any unread LOB data. For long char fields, we may already have up to odbc_longreadlen() bytes in the buffer. These are passed in via the $curdata parm. For long binary fields, no data is read initially since odbc_binmode() is set to ODBC_BINMODE_PASSTHRU. This method adjusts the binmode and longreadlen to finish reading these datatypes into the buffer. Returns a string with the complete contents. param: int|string $column Column index or name to read data from. param: int $binmode ODBC_BINMODE_RETURN for binary data, ODBC_BINMODE_CONVERT for char data. param: string $curdata Existing LOB data already in buffer. return: string |
| checkFetchMode(&$row) X-Ref |
| Converts row fields to names if FETCHMODE_ASSOC is set. param: array& Row to convert. return: array& Converted row. |
| Généré le : Fri Mar 16 22:42:14 2007 | par Balluche grâce à PHPXref 0.7 |