Example #1
0
 function initQuery($params)
 {
     $tables = Featured_Products::getTables();
     $fp_table = $tables['fp_links']['columns'];
     $this->addSelectTable('fp_links');
     $this->addSelectField($fp_table['fp_id'], 'fp_id');
     $this->Where($fp_table['category_id'], DB_IN, "(" . implode(", ", $params['categories_ids']) . ")");
     $this->SelectGroup($fp_table['fp_id']);
     $this->SelectOrder($fp_table['sort_order']);
 }
 function uninstall()
 {
     $query = new DB_Table_Delete(Featured_Products::getTables());
 }