/**
  * @service language write
  * @return Gpf_Rpc_Form
  */
 public function save(Gpf_Rpc_Params $params)
 {
     $form = new Gpf_Rpc_Form($params);
     $result = parent::save($params);
     Gpf_Lang_CsvLanguage::rebuildLanguageCache($form->getFieldValue('Id'));
     return $result;
 }
 /**
  *
  * @service merchant write
  * @return Gpf_Rpc_Form
  */
 public function save(Gpf_Rpc_Params $params) {
     $form = parent::save($params);
     
     if ($form->existsField('WelcomeMessage')) {
         Gpf_Settings::set(Pap_Settings::WELCOME_MESSAGE, $form->getFieldValue("WelcomeMessage"));
     }
     return $form;
 }
 /**
  * @service newsletter write
  * @param $fields
  */
 public function save(Gpf_Rpc_Params $params)
 {
     return parent::save($params);
 }
    /**
     * @service banners_categories write
     * @return Gpf_Rpc_Form
     */
    public function save(Gpf_Rpc_Params $params) {
        $form = new Gpf_Rpc_Form($params);

        $name = $form->getFieldValue('name');
        $state = $form->getFieldValue('state');

        $node = $this->getTreeNode($form->getFieldValue('Id'));
        $node->setName($name);
        $node->setState($state);
        $node->save();
        $form = parent::save($params);
        if ($form->getErrorMessage() != '') {
            $this->categoryCode = $form->getFieldValue('Id');
            $form = parent::add($params);
        }
        return $form;
    }
 /**
  * @service mail_template write
  * @param $fields
  * @return Gpf_Rpc_Form
  */
 public function save(Gpf_Rpc_Params $params)
 {
     return $this->unEscapeStyleTags(parent::save($params));
 }
 /**
  * @service transaction write
  * @return Gpf_Rpc_Form
  */
 public function save(Gpf_Rpc_Params $params) {
     $params = $this->processChannel($params);
     return parent::save($params);
 }