Development

Changeset 18317

You must first sign up to be able to contribute.

Changeset 18317

Show
Ignore:
Timestamp:
05/16/09 06:19:56 (4 years ago)
Author:
prometheas
Message:

Added README file to plugin.

Added two utility methods to the sfPropelLazyHydrationIterator class, which expose details about the amount of data returned by a result set.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfPropelLazyHydrationIteratorPlugin/trunk/src/plugin/lib/sfPropelLazyHydrationIterator.class.php

    r18213 r18317  
    8888   
    8989  /** 
     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  /** 
    90112   * Returns a hydrated instance of the appropriate model class, using 
    91113   * the row data at the ResultSet's current pointer position.