Gpf_Rpc_Action::existsParam PHP 메소드

existsParam() 공개 메소드

public existsParam ( $name )
        public function existsParam($name)
        {
            return $this->params->exists($name);
        }

Usage Example

예제 #1
0
    /**
     * @service affiliate_panel_settings write
     *
     * @return Gpf_Rpc_Action
     */
    public function setDefaultTheme(Gpf_Rpc_Params $params) {
        $action = new Gpf_Rpc_Action($params);
        $action->setErrorMessage($this->_("Error changing default theme"));
        $action->setInfoMessage($this->_("Default theme changed"));

        try {
            Gpf_Settings::set($action->getParam("settingName"), $action->getParam('themeId'));
            if ($action->existsParam('allAffiliates') && $action->getParam('allAffiliates') == Gpf::YES) {
                $this->updateThemeExistingAffiliates($action->getParam('themeId'));
            }
            $action->addOk();
        } catch (Exception $e) {
            $action->addError();
        }

        return $action;
    }
All Usage Examples Of Gpf_Rpc_Action::existsParam