public function __construct() { parent::__construct(); if (empty(self::$pages)) { $this->getPages(); } }
public function getOrderParam() { $order = parent::getOrderParam(); return '(`quantity` > 0) DESC, ' . $order; }
/** * @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; }