当前位置: 首页>>代码示例>>PHP>>正文


PHP Gpf_Rpc_Form::setInfoMessage方法代码示例

本文整理汇总了PHP中Gpf_Rpc_Form::setInfoMessage方法的典型用法代码示例。如果您正苦于以下问题:PHP Gpf_Rpc_Form::setInfoMessage方法的具体用法?PHP Gpf_Rpc_Form::setInfoMessage怎么用?PHP Gpf_Rpc_Form::setInfoMessage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Gpf_Rpc_Form的用法示例。


在下文中一共展示了Gpf_Rpc_Form::setInfoMessage方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: save

 /**
  * @anonym
  * @service custom_separator write
  * @param Gpf_Rpc_Params $params
  * @return Gpf_Rpc_Form
  */
 public function save(Gpf_Rpc_Params $params) {
     $form = new Gpf_Rpc_Form($params);
     Gpf_Settings::set(self::CUSTOM_SEPARATOR, $form->getFieldValue(self::CUSTOM_SEPARATOR));
     Gpf_Settings::set(self::HTML_COOKIE_VARIABLE, $form->getFieldValue(self::HTML_COOKIE_VARIABLE));
     $form->setInfoMessage($this->_('Configuration saved'));
     return $form;
 }
开发者ID:AmineCherrai,项目名称:rostanvo,代码行数:13,代码来源:Config.class.php

示例2: save

    /**
     * @service cronjob write
     * @param $fields
     */
    public function save(Gpf_Rpc_Params $params) {
        $form = new Gpf_Rpc_Form($params);

        Gpf_Settings::set(Gpf_Settings_Gpf::CRON_RUN_INTERVAL, $form->getFieldValue(Gpf_Settings_Gpf::CRON_RUN_INTERVAL));
        $form->setInfoMessage($this->_("Cron runtime saved"));
        return $form;
    }
开发者ID:AmineCherrai,项目名称:rostanvo,代码行数:11,代码来源:CronJobIntegration.class.php

示例3: report

 /**
  * @service report_problem write
  * 
  * @param Gpf_Rpc_Params $params
  * @return Gpf_Rpc_Form
  */
 public function report(Gpf_Rpc_Params $params) {
     $form = new Gpf_Rpc_Form($params);
     
     $subject = 'PAP4: '.$form->getFieldValue('subject');
     
     $message = 'License: '.$form->getFieldValue('licenseId').'<br>'.
                'Product: <b>'.Gpf_Settings::get(Pap_Settings::BRANDING_TEXT_POST_AFFILIATE_PRO).' '.Gpf_Settings::get(Gpf_Settings_Gpf::VARIATION).'</b><br>'.
                'Version: <b>'.Gpf_Application::getInstance()->getVersion().'</b><br>'.
                'Url: <a href="'.Gpf_Paths::getInstance()->getFullBaseServerUrl().'">'.Gpf_Paths::getInstance()->getFullBaseServerUrl().'</a><br>'.
                '-------------------------------------------------------------------------------<br>'.
                $form->getFieldValue('message');
     
     $mail = new Gpf_Db_Mail();
     $mail->setSubject($subject);
     $mail->setHtmlBody($message);
     $mail->setFromMail($form->getFieldValue('email'));
     $mail->setRecipients("support@qualityunit.com");
     
     try {
         $mail->insert();
         $mail->scheduleNow(true);
         $form->setInfoMessage($this->_("Email sent"));
     } catch (Exception $e) {
         $form->setErrorMessage($this->_("Error while sending mail"));
     }
     return $form;
 }
开发者ID:AmineCherrai,项目名称:rostanvo,代码行数:33,代码来源:ReportProblem.class.php

示例4: save

 /**
  * @service mail_template write
  * @param $fields
  * @return Gpf_Rpc_Form
  */
 public function save(Gpf_Rpc_Params $params)
 {
     $form = new Gpf_Rpc_Form($params);
     try {
         $mailTemplate = $this->loadMailTemplate($form->getFieldValue('templateid'));
     } catch (Gpf_Exception $e) {
         $form->setErrorMessage($this->_('Failed to load mail template with error: %s', $e->getMessage()));
         return $form;
     }
     try {
         $className = $mailTemplate->get(Gpf_Db_Table_MailTemplates::CLASS_NAME);
         $objTemplate = new $className();
         $templateVariables = new Gpf_Data_RecordSet();
         $templateVariables->setHeader(array('id', 'value'));
         foreach ($objTemplate->getTemplateVariables() as $code => $name) {
             $record = $templateVariables->createRecord();
             $record->set('id', $code);
             $record->set('value', $form->getFieldValue('var_' . $code));
             $templateVariables->add($record);
         }
         $objTemplate->setCachedVariableValues($templateVariables);
         $objTemplate->addRecipient($form->getFieldValue('recipient'));
         $objTemplate->sendNow();
     } catch (Gpf_Exception $e) {
         $form->setErrorMessage($this->_('Failed to send test mail with error: %s', $e->getMessage()));
         return $form;
     }
     $form->setInfoMessage($this->_('Test mail was successfully queued'));
     return $form;
 }
开发者ID:AmineCherrai,项目名称:rostanvo,代码行数:35,代码来源:MailTemplateTestForm.class.php

示例5: save

    /**
     * @service tracking_mod_rewrite write
     * @param $fields
     */
    public function save(Gpf_Rpc_Params $params) {
        $form = new Gpf_Rpc_Form($params);

        $prefix = $form->getFieldValue(Pap_Settings::MOD_REWRITE_PREFIX_SETTING_NAME);
        $separator = $form->getFieldValue(Pap_Settings::MOD_REWRITE_SEPARATOR_SETTING_NAME);
        $suffix = $form->getFieldValue(Pap_Settings::MOD_REWRITE_SUFIX_SETTING_NAME);
        $htaccessCode = $this->generateHtaccessCode($prefix, $separator, $suffix);

        if($separator == '') {
        	$form->setErrorMessage("Separator cannot be empty!");
        	return $form;
        }

        Gpf_Settings::set(Pap_Settings::MOD_REWRITE_PREFIX_SETTING_NAME, $prefix);
        Gpf_Settings::set(Pap_Settings::MOD_REWRITE_SEPARATOR_SETTING_NAME, $separator);
        Gpf_Settings::set(Pap_Settings::MOD_REWRITE_SUFIX_SETTING_NAME, $suffix);

        $form->setField("htaccess_code", $htaccessCode);

        $form->setInfoMessage($this->_("Changes saved"));

        Pap_Db_Table_CachedBanners::clearCachedBanners();

        return $form;
    }
开发者ID:AmineCherrai,项目名称:rostanvo,代码行数:29,代码来源:ModRewriteForm.class.php

示例6: saveDefaultPayoutMethod

 /**
  * Save default payout method
  *
  * @service payout_option write
  * @param Gpf_Rpc_Params $params 
  */
 public function saveDefaultPayoutMethod(Gpf_Rpc_Params $params) {
     $form = new Gpf_Rpc_Form($params);
     $form->setInfoMessage($this->_('Default payout option saved'));
     
     Gpf_Settings::set(Pap_Settings::DEFAULT_PAYOUT_METHOD, $form->getFieldValue("id"));
     
     return $form;
 }
开发者ID:AmineCherrai,项目名称:rostanvo,代码行数:14,代码来源:PayoutOptionsGridForm.class.php

示例7: save

    /**
     * @anonym
     * @service custom_separator write
     * @param Gpf_Rpc_Params $params
     * @return Gpf_Rpc_Form
     */
    public function save(Gpf_Rpc_Params $params) {
        $form = new Gpf_Rpc_Form($params);

        Gpf_Settings::set(Pap_Settings::GEOIP_IMPRESSIONS_DISABLED,
        $form->getFieldValue(Pap_Settings::GEOIP_IMPRESSIONS_DISABLED));

        $form->setInfoMessage($this->_('GeoIp settings saved'));
        return $form;
    }
开发者ID:AmineCherrai,项目名称:rostanvo,代码行数:15,代码来源:Config.class.php

示例8: save

    /**
     * @service url_setting write
     * @param $fields
     */
    public function save(Gpf_Rpc_Params $params) {
        $form = new Gpf_Rpc_Form($params);

        Gpf_Settings::set(Pap_Settings::MAIN_SITE_URL, $form->getFieldValue(Pap_Settings::MAIN_SITE_URL));

        $form->setInfoMessage($this->_("URLs & Directories saved"));

        return $form;
    }
开发者ID:AmineCherrai,项目名称:rostanvo,代码行数:13,代码来源:UrlsAndDirectories.class.php

示例9: saveSignupBonus

	/**
	 * @service commission write
	 * @param $fields
	 */
	public function saveSignupBonus(Gpf_Rpc_Params $params) {
		$form = new Gpf_Rpc_Form($params);

		Gpf_Settings::set(Pap_Settings::SIGNUP_BONUS,
		$form->getFieldValue(Pap_Settings::SIGNUP_BONUS));
		$form->setInfoMessage($this->_("Signup bonus saved"));

		return $form;
	}
开发者ID:AmineCherrai,项目名称:rostanvo,代码行数:13,代码来源:SignupCommissions.class.php

示例10: checkAndSavePayoutInvoice

 protected function checkAndSavePayoutInvoice(Gpf_Rpc_Form $form, $templateSource, $settingName) {
 	$template = new Gpf_Templates_Template($templateSource, '', Gpf_Templates_Template::FETCH_TEXT);
     if ($template->isValid()) {
     	Gpf_Settings::set($settingName, $templateSource);
         $form->setInfoMessage($this->getInfoMessage());
         return;
     }
     $form->setErrorMessage($this->_('Invalid Smarty syntax. More information: ') .
     Gpf_Application::getKnowledgeHelpUrl(Pap_Common_Constants::SMARTY_SYNTAX_URL));
 }
开发者ID:AmineCherrai,项目名称:rostanvo,代码行数:10,代码来源:InvoiceFormatForm.class.php


注:本文中的Gpf_Rpc_Form::setInfoMessage方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。