コード例 #1
0
ファイル: revisable.php プロジェクト: raeldc/nooku-server
 /**
  * Find an existing revision
  *
  * @param  string   The row status to look for
  * @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);
 }