Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 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;
 }