Changeset 23022 for branches/version-2_13-dev/data/module/MDB2/Iterator.php
- Timestamp:
- 2013/08/02 13:22:57 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/module/MDB2/Iterator.php
r20764 r23022 43 43 // +----------------------------------------------------------------------+ 44 44 // 45 // $Id: Iterator.php ,v 1.22 2006/05/06 14:03:41 lsmith Exp$45 // $Id: Iterator.php 327310 2012-08-27 15:16:18Z danielc $ 46 46 47 47 /** … … 55 55 { 56 56 protected $fetchmode; 57 /** 58 * @var MDB2_Result_Common 59 */ 57 60 protected $result; 58 61 protected $row; … … 63 66 * Constructor 64 67 */ 65 public function __construct( $result, $fetchmode = MDB2_FETCHMODE_DEFAULT)68 public function __construct(MDB2_Result_Common $result, $fetchmode = MDB2_FETCHMODE_DEFAULT) 66 69 { 67 70 $this->result = $result; … … 113 116 public function current() 114 117 { 115 if ( is_null($this->row)) {118 if (null === $this->row) { 116 119 $row = $this->result->fetchRow($this->fetchmode); 117 if ( PEAR::isError($row)) {120 if (MDB2::isError($row)) { 118 121 $row = false; 119 122 }
Note: See TracChangeset
for help on using the changeset viewer.