Changeset 18317
- Timestamp:
- 05/16/09 06:19:56 (4 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfPropelLazyHydrationIteratorPlugin/trunk/src/plugin/lib/sfPropelLazyHydrationIterator.class.php
r18213 r18317 88 88 89 89 /** 90 * Reports the number of items in the result. 91 * 92 * @return integer 93 * @author John Lianoglou <prometheas@gmail.com> 94 */ 95 public function count() 96 { 97 return $this->resultSet->getRecordCount(); 98 } 99 100 /** 101 * Reports the number of items in the result. 102 * 103 * @return bool 104 * @author John Lianoglou <prometheas@gmail.com> 105 */ 106 public function isEmpty() 107 { 108 return $this->count() === 0; 109 } 110 111 /** 90 112 * Returns a hydrated instance of the appropriate model class, using 91 113 * the row data at the ResultSet's current pointer position.