/** * Return params list to use for search * * @return \XLite\Core\CommonCell */ protected function getSearchCondition() { $result = parent::getSearchCondition(); $result->{\XLite\Model\Repo\Module::P_INSTALLED} = true; $result->{\XLite\Model\Repo\Module::P_ISSYSTEM} = false; return $result; }
/** * Return params list to use for search * * @return \XLite\Core\CommonCell */ protected function getSearchCondition() { if ($this->isLandingPage()) { $cnd = new \XLite\Core\CommonCell(); $cnd->{\XLite\Model\Repo\Module::P_FROM_MARKETPLACE} = true; $cnd->{\XLite\Model\Repo\Module::P_ISSYSTEM} = false; $cnd->{\XLite\Model\Repo\Module::P_IS_LANDING} = true; $cnd->{\XLite\Model\Repo\Module::P_ORDER_BY} = array(static::SORT_OPT_LANDING_POSITION, static::SORT_ORDER_ASC); } else { $cnd = parent::getSearchCondition(); $cnd->{\XLite\Model\Repo\Module::P_FROM_MARKETPLACE} = true; $cnd->{\XLite\Model\Repo\Module::P_ISSYSTEM} = false; if (isset(\XLite\Core\Request::getInstance()->clearCnd)) { $cnd->{\XLite\Model\Repo\Module::P_ORDER_BY} = array(static::SORT_OPT_ALPHA, static::SORT_ORDER_ASC); } else { $cnd->{\XLite\Model\Repo\Module::P_PRICE_FILTER} = $this->getParam(static::PARAM_PRICE); $cnd->{\XLite\Model\Repo\Module::P_SUBSTRING} = $this->getSubstring(); $tag = $this->getTagValue(); if ($tag) { $cnd->{\XLite\Model\Repo\Module::P_TAG} = $tag; } $vendor = $this->getVendorValue(); if ($vendor) { $cnd->{\XLite\Model\Repo\Module::P_VENDOR} = $vendor; } } } return $cnd; }
/** * Return params list to use for search * * @return \XLite\Core\CommonCell */ protected function getSearchCondition() { $result = parent::getSearchCondition(); if ($this->isRecentlyInstalledPage()) { $result->{\XLite\Model\Repo\Module::P_MODULEIDS} = \XLite\Controller\Admin\Base\AddonsList::getRecentlyInstalledModuleList(); } else { $result->{\XLite\Model\Repo\Module::P_INSTALLED} = true; $result->{\XLite\Model\Repo\Module::P_ISSYSTEM} = false; if (!isset(\XLite\Core\Request::getInstance()->clearCnd)) { $result->{\XLite\Model\Repo\Module::P_SUBSTRING} = $this->getSubstring(); } } return $result; }
/** * Return params list to use for search * * @return \XLite\Core\CommonCell */ protected function getSearchCondition() { $cnd = parent::getSearchCondition(); $cnd->{\XLite\Model\Repo\Module::P_ORDER_BY} = array($this->getSortBy(), $this->getSortOrder()); $cnd->{\XLite\Model\Repo\Module::P_PRICE_FILTER} = $this->getParam(self::PARAM_PRICE_FILTER); $cnd->{\XLite\Model\Repo\Module::P_SUBSTRING} = $this->getParam(self::PARAM_SUBSTRING); $cnd->{\XLite\Model\Repo\Module::P_FROM_MARKETPLACE} = true; $cnd->{\XLite\Model\Repo\Module::P_ISSYSTEM} = false; return $cnd; }