示例#1
0
 /**
  * Construct the record iterator.
  * 
  * @uses Omeka_View_Helper_Singularize::singularize()
  * @param array $records
  * @param null|Zend_View_Abstract $view
  * @param null|string $currentRecordVar
  */
 public function __construct(array $records, $view = null, $currentRecordVar = null)
 {
     // Normalize the current record variable for the view.
     if ($view instanceof Zend_View_Abstract) {
         $currentRecordVar = $view->singularize($currentRecordVar);
     }
     $this->_records = $records;
     $this->_currentRecordVar = $currentRecordVar;
     $this->_view = $view;
 }