コード例 #1
0
ファイル: Vocabulary.class.php プロジェクト: evilgeny/bob
 public function parseCategory(RM_Category_Object $obCategory, array $period = array())
 {
     $this->_command->reset();
     $this->_mine->addHolder('category_table', $obCategory->getCategoryTableName());
     if ($period) {
         $this->_mine->addHolder('period', array("c.bdate>='" . $period[0] . "'", "c.bdate<'" . $period[1] . "'"));
     }
     $this->_command->execute();
 }
コード例 #2
0
ファイル: Extension.class.php プロジェクト: evilgeny/bob
 public function getCopyRestriction()
 {
     return 'p.generaltype_id=' . $this->_category->categoryId();
 }