/** * Define widget parameters * * @return void */ protected function defineWidgetParams() { parent::defineWidgetParams(); $this->widgetParams += array(static::PARAM_REDIRECT_CODE => new \XLite\Model\WidgetParam\Int('Redirect code', $this->getDefaultRedirectCode())); }
/** * Define widget parameters * * @return void */ protected function defineWidgetParams() { parent::defineWidgetParams(); $this->widgetParams += array(self::PARAM_TEMPLATE => new \XLite\Model\WidgetParam\File('Template', $this->getDefaultTemplate()), self::PARAM_MODES => new \XLite\Model\WidgetParam\Collection('Modes', $this->getDefaultModes())); }
/** * Compose URL from target, action and additional params * * @param string $target Page identifier OPTIONAL * @param string $action Action to perform OPTIONAL * @param array $params Additional params OPTIONAL * @param boolean $forceCuFlag Force flag - use Clean URL OPTIONAL * * @return string */ public function buildURL($target = '', $action = '', array $params = array(), $forceCuFlag = null) { return \XLite\Core\Converter::makeURLValid(\XLite\Core\Handler::buildURL($target, $action, $params, $forceCuFlag)); }
/** * Compose URL from target, action and additional params * * @param string $target Page identifier * @param string $action Action to perform OPTIONAL * @param array $params Additional params OPTIONAL * * @return string */ protected function getJoomlaURL($target, $action = '', array $params = array()) { // TODO - this function must not be called! return parent::buildURL($target, $action, $params) . '&============'; }