Beispiel #1
0
 /**
  * Count revisions
  *
  * @param  string  $status  The row status
  * @return	boolean
  */
 protected function _countRevisions($status = null)
 {
     $query = array('table' => $this->getTable()->getName(), 'row' => $this->id);
     if ($status) {
         $query['status'] = $status;
     }
     return $this->_table->count($query);
 }