public function getTasks() { $condition = array(array('id', '>', $this->lastLogId), array('cityId', 'in', Bll_City::getCloseShowCaseCities()), array('status', '=', Const_ShowcaseOrders::STATUS_VALID)); $sort = array('id', 'asc'); if ($this->dataBase == Const_ShowcaseOrders::SALE_DB) { $tasks = Model_Broker_AdSetSale::getList($condition, $this->limit, $sort); } else { $tasks = Model_Broker_AdSetRent::getList($condition, $this->limit, $sort); } return $tasks; }
public function getTasks() { $condition = array(array('id', '>', $this->lastFlagId)); $sort = array('id', 'asc'); if ($this->_dataBase == Const_ShowcaseOrders::SALE_DB) { $tasks = Model_Broker_AdSetSale::getList($condition, $this->limit, $sort); } else { $tasks = Model_Broker_AdSetRent::getList($condition, $this->limit, $sort); } return $tasks; }