diff options
author | Volker Thiel <riker09@gmx.de> | 2013-03-12 13:57:37 +0100 |
---|---|---|
committer | Volker Thiel <riker09@gmx.de> | 2013-03-12 13:57:37 +0100 |
commit | 43cf002a0d5cb35737dab88eba976fdc44f0e772 (patch) | |
tree | 56a713a59ba5fa5b177714d9e355d9dea491da5d /modules/database/classes/driver/mysql/result.php | |
parent | 3eafbc10c01224aaf839da92b4686042d4ae7959 (diff) | |
download | PHPixie-43cf002a0d5cb35737dab88eba976fdc44f0e772.zip PHPixie-43cf002a0d5cb35737dab88eba976fdc44f0e772.tar.gz PHPixie-43cf002a0d5cb35737dab88eba976fdc44f0e772.tar.bz2 |
Further application of coding guidelines
Done with Netbeans 7.3
Now with Tabs instead of Spaces!
Diffstat (limited to 'modules/database/classes/driver/mysql/result.php')
-rw-r--r-- | modules/database/classes/driver/mysql/result.php | 90 |
1 files changed, 45 insertions, 45 deletions
diff --git a/modules/database/classes/driver/mysql/result.php b/modules/database/classes/driver/mysql/result.php index e9de4a5..2927192 100644 --- a/modules/database/classes/driver/mysql/result.php +++ b/modules/database/classes/driver/mysql/result.php @@ -7,52 +7,52 @@ class Result_Mysql_Driver extends Result_Database { - /** - * Initializes new result object - * - * @param mysqli_result $result Mysqli Result - * @return void - * @access public - * @link http://php.net/manual/en/class.mysqli-result.php - */ - public function __construct($result) - { - $this->_result = $result; - } + /** + * Initializes new result object + * + * @param mysqli_result $result Mysqli Result + * @return void + * @access public + * @link http://php.net/manual/en/class.mysqli-result.php + */ + public function __construct($result) + { + $this->_result = $result; + } - /** - * Throws exception if rewind is attempted. - * - * @return void - * @access public - * @throws Exception If rewind is attempted - */ - public function rewind() - { - if ($this->_position > 0) - { - throw new Exception('Mysqli result cannot be rewound for unbuffered queries.'); - } - } + /** + * Throws exception if rewind is attempted. + * + * @return void + * @access public + * @throws Exception If rewind is attempted + */ + public function rewind() + { + if ($this->_position > 0) + { + throw new Exception('Mysqli result cannot be rewound for unbuffered queries.'); + } + } - /** - * Iterates to the next row in the result set - * - * @return void - * @access public - */ - public function next() - { - $this->check_fetched(); - $this->_row = $this->_result->fetch_object(); - if ($this->_row) - { - $this->_position++; - } - else - { - $this->_result->free(); - } - } + /** + * Iterates to the next row in the result set + * + * @return void + * @access public + */ + public function next() + { + $this->check_fetched(); + $this->_row = $this->_result->fetch_object(); + if ($this->_row) + { + $this->_position++; + } + else + { + $this->_result->free(); + } + } }
\ No newline at end of file |