예제 #1
0
파일: tag.php 프로젝트: bizanto/Hooked
 public function count($application_id)
 {
     $select = 'DISTINCT a.name';
     $from = $this->getTableName() . " AS a, " . ZOO_TABLE_ITEM . " AS b USE INDEX (ID_APPLICATION_INDEX)";
     $conditions = array("a.item_id = b.id AND b.application_id = " . (int) $application_id);
     $options = compact('select', 'from', 'conditions');
     return parent::count($options);
 }