/** * @param String $campaignId * @return Gpf_SqlBuilder_SelectIterator */ private function getRules($campaignId) { $select = new Gpf_SqlBuilder_SelectBuilder(); $select->select->addAll(Pap_Db_Table_Rules::getInstance()); $select->from->add(Pap_Db_Table_Rules::getName()); $select->where->add(Pap_Db_Table_Rules::CAMPAIGN_ID, '=', $campaignId); return $select->getAllRowsIterator(); }
function init() { $this->setTable(Pap_Db_Table_Rules::getInstance()); parent::init(); }