3 class result extends PDOStatement {
4 //All functions in this class are deprecated!
5 //Please use only native PDOStatement functions!
10 var $_currentRecord = array();
11 var $_queryId = false;
15 protected function __construct($dbh) {
18 $this->_numRows = @$this->rowCount();
19 //$this->_numFields = @mysql_num_fields($this->_queryId);
20 $this->_currentRow = -1;
21 $this->_currentRecord = array();
24 function next() { //DEPRECATED!!! Use $this->fetch(); instead!!!
25 if ($this->_currentRow + 1 >= $this->_numRows) {
28 $this->_currentRecord = @$this->fetch();
34 function getRecord() { //DEPRECATED!!! Use $this->fetch(); instead!!!
35 return $this->_currentRecord;
38 function getString($column) { //DEPRECATED!!! Use $this->fetch(); instead!!!
39 if (is_int($column) == true) {
40 return (string) $this->_currentRecord[$column - 1];
42 return (string) isset($this->_currentRecord["$column"]) ? $this->_currentRecord["$column"]: "";
46 function getInt($column) { //DEPRECATED!!! Use $this->fetch(); instead!!!
47 return $this->getString($column); //Dynamic typing OMG...
50 function getNumRows() { //DEPRECATED!!! Use $this->rowCount(); instead!!!
51 return $this->_numRows;