Пример #1
0
 function initQuery($params)
 {
     $category_id = $params['category_id'];
     $bs_ids = $params['bs_ids'];
     $tables = Bestsellers_API::getTables();
     $bs_table = $tables['bs_links']['columns'];
     $this->WhereValue($bs_table['category_id'], DB_EQ, $category_id);
     $this->WhereAND();
     $this->Where($bs_table['bs_id'], DB_IN, "(" . implode(", ", $bs_ids) . ")");
 }
 function uninstall()
 {
     $query = new DB_Table_Delete(Bestsellers_API::getTables());
 }