Exemplo n.º 1
0
 public function __construct()
 {
     parent::__construct();
     if (empty(self::$pages)) {
         $this->getPages();
     }
 }
Exemplo n.º 2
0
 public function getOrderParam()
 {
     $order = parent::getOrderParam();
     return '(`quantity` > 0) DESC, ' . $order;
 }
Exemplo n.º 3
0
 /**
  * @param array $params
  * @param array $addParams
  * @return array|bool
  */
 public function getCollection($params = array(), $addParams = array())
 {
     $entities = parent::getCollection($params, $addParams);
     $entities = $this->getMaterialsAttaches($entities, 'loads');
     return $entities;
 }