cvs: pear /MDB2/MDB2/Driver ibase.php /MDB2/MDB2/Driver/Native ibase.php

From: Date: Fri, 21 May 2004 13:03:07 +0000
Subject: cvs: pear /MDB2/MDB2/Driver ibase.php /MDB2/MDB2/Driver/Native ibase.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-19733@lists.php.net to get a copy of this message
quipo Fri May 21 09:03:07 2004 EDT Modified files: /pear/MDB2/MDB2/Driver/Native ibase.php /pear/MDB2/MDB2/Driver ibase.php Log: cosmetics http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/Native/ibase.php?r1=1.3&r2=1.4&ty=u Index: pear/MDB2/MDB2/Driver/Native/ibase.php diff -u pear/MDB2/MDB2/Driver/Native/ibase.php:1.3 pear/MDB2/MDB2/Driver/Native/ibase.php:1.4 --- pear/MDB2/MDB2/Driver/Native/ibase.php:1.3 Fri May 21 07:43:56 2004 +++ pear/MDB2/MDB2/Driver/Native/ibase.php Fri May 21 09:03:07 2004 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@backendmedia.com> | // +----------------------------------------------------------------------+ // -// $Id: ibase.php,v 1.3 2004/05/21 11:43:56 lsmith Exp $ +// $Id: ibase.php,v 1.4 2004/05/21 13:03:07 quipo Exp $ // /** @@ -66,9 +66,17 @@ $this->db_index = $db_index; } + // }}} + // {{{ constructor + + /** + * PHP4 Constructor + */ function MDB2_Driver_Native_ibase($db_index) { $this->__construct($db_index); } + + // }}} } ?> \ No newline at end of file http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/ibase.php?r1=1.32&r2=1.33&ty=u Index: pear/MDB2/MDB2/Driver/ibase.php diff -u pear/MDB2/MDB2/Driver/ibase.php:1.32 pear/MDB2/MDB2/Driver/ibase.php:1.33 --- pear/MDB2/MDB2/Driver/ibase.php:1.32 Fri May 21 07:43:28 2004 +++ pear/MDB2/MDB2/Driver/ibase.php Fri May 21 09:03:07 2004 @@ -43,7 +43,7 @@ // | Author: Lorenzo Alberton <l.alberton@quipo.it> | // +----------------------------------------------------------------------+ // -// $Id: ibase.php,v 1.32 2004/05/21 11:43:28 lsmith Exp $ +// $Id: ibase.php,v 1.33 2004/05/21 13:03:07 quipo Exp $ /** * MDB2 FireBird/InterBase driver @@ -97,6 +97,9 @@ $this->options['default_text_field_length'] = 4000; } + // }}} + // {{{ PHP4 constructor + function MDB2_Driver_ibase() { $this->__construct(); @@ -313,7 +316,7 @@ * * @return mixed connection resource on success, MDB2 Error Object on failure * @access private - **/ + */ function _doConnect($database_name, $persistent = false) { $dsninfo = $this->dsn; @@ -350,7 +353,7 @@ * * @return true on success, MDB2 Error Object on failure * @access public - **/ + */ function connect() { $database_file = $this->_getDatabaseFile($this->database_name); @@ -397,7 +400,7 @@ * * @return boolean * @access private - **/ + */ function _close() { if ($this->connection != 0) { @@ -423,7 +426,7 @@ * @param string $query the SQL query * @return mixed result identifier if query executed, else MDB2_error * @access private - **/ + */ function _doQuery($query, $prepared_query = false) { $connection = ($this->auto_commit ? $this->connection : $this->transaction_id); @@ -630,11 +633,12 @@ } return $value; } + + // }}} } class MDB2_Result_ibase extends MDB2_Result_Common { - // }}} // {{{ _skipLimitOffset() /** @@ -667,13 +671,13 @@ // {{{ fetch() /** - * fetch value from a result set - * - * @param int $rownum number of the row where the data can be found - * @param int $colnum field number where the data can be found - * @return mixed string on success, a MDB2 error on failure - * @access public - */ + * fetch value from a result set + * + * @param int $rownum number of the row where the data can be found + * @param int $colnum field number where the data can be found + * @return mixed string on success, a MDB2 error on failure + * @access public + */ function fetch($rownum = 0, $colnum = 0) { $seek = $this->seek($rownum); @@ -840,20 +844,25 @@ $this->result = null; return MDB2_OK; } + + // }}} } class MDB2_BufferedResult_ibase extends MDB2_Result_ibase { + // {{{ class vars + var $buffer; var $buffer_rownum = - 1; + // }}} // {{{ _fillBuffer() /** * Fill the row buffer * * @param int $rownum row number upto which the buffer should be filled - if the row number is null all rows are ready into the buffer + * if the row number is null all rows are ready into the buffer * @return boolean true on success, false on failure * @access private */ @@ -949,12 +958,12 @@ // {{{ seek() /** - * seek to a specific row in a result set - * - * @param int $rownum number of the row where the data can be found - * @return mixed MDB2_OK on success, a MDB2 error on failure - * @access public - */ + * seek to a specific row in a result set + * + * @param int $rownum number of the row where the data can be found + * @return mixed MDB2_OK on success, a MDB2 error on failure + * @access public + */ function seek($rownum = 0) { if (is_null($this->result)) { @@ -1020,6 +1029,8 @@ $this->buffer_rownum = null; $free = parent::free(); } + + // }}} } ?> \ No newline at end of file

« previous php.pear.cvs (#19733) next »