/** * Return products list * * @param \XLite\Core\CommonCell $cnd Search condition * @param boolean $countOnly Return items list or only its size OPTIONAL * * @return array|integer */ protected function getData(\XLite\Core\CommonCell $cnd, $countOnly = false) { $cnd->{\XLite\Module\XC\News\Model\Repo\NewsMessage::P_LIMIT} = array(0, \XLite\Core\Config::getinstance()->XC->News->top_news_length); return parent::getData($cnd, $countOnly); }
/** * Return name of the base widgets list * * @return string */ protected function getListName() { return parent::getListName() . '.center'; }