/** * Return params list to use for search * * @return \XLite\Core\CommonCell */ protected function getSearchCondition() { $cnd = parent::getSearchCondition(); $cnd->{\XLite\Model\Repo\Payment\Method::P_MODULE_ENABLED} = true; $cnd->{\XLite\Model\Repo\Payment\Method::P_ADDED} = true; $cnd->{\XLite\Model\Repo\Payment\Method::P_ORDERBY} = array('m.class, translations.name', 'asc'); return $cnd; }
/** * Return params list to use for search * * @return \XLite\Core\CommonCell */ protected function getSearchCondition() { $result = parent::getSearchCondition(); // We initialize structure to define order (field and sort direction) in search query. $result->{\XLite\Model\Repo\Product::P_ORDER_BY} = $this->getOrderBy(); return $result; }
/** * Returns a list of CSS classes (separated with a space character) to be attached to the items list * * @return string */ public function getListCSSClasses() { return parent::getListCSSClasses() . ' items-list-pin-codes'; }
/** * Get widget templates directory * * @return string */ protected function getDir() { return parent::getDir() . '/module'; }
/** * Returns a list of CSS classes (separated with a space character) to be attached to the items list * * @return string */ public function getListCSSClasses() { return parent::getListCSSClasses() . ' featuredProducts'; }
/** * Return internal list name * * @return string */ protected function getListName() { return parent::getListName() . '.' . implode('.', $this->getListNameSuffixes()); }
/** * Return name of the base widgets list * * @return string */ protected function getListName() { return parent::getListName() . '.newsMessages.customer'; }
/** * Get container class * * @return string */ protected function getContainerClass() { return parent::getContainerClass() . ' reviews'; }
/** * Return params list to use for search * * @return \XLite\Core\CommonCell */ protected function getSearchCondition() { $result = parent::getSearchCondition(); $result->{\XLite\Model\Repo\Profile::SEARCH_ORDER_ID} = 0; return $result; }
/** * Return params list to use for search * * @return \XLite\Core\CommonCell */ protected function getSearchCondition() { $result = parent::getSearchCondition(); $result->{\XLite\Model\Repo\Order::P_ORDER_BY} = array($this->getSortBy(), $this->getSortOrder()); return $result; }