本文整理汇总了PHP中Gpf_Settings::set方法的典型用法代码示例。如果您正苦于以下问题:PHP Gpf_Settings::set方法的具体用法?PHP Gpf_Settings::set怎么用?PHP Gpf_Settings::set使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Gpf_Settings
的用法示例。
在下文中一共展示了Gpf_Settings::set方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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::SECRET_KEY, $form->getFieldValue(self::SECRET_KEY));
Gpf_Settings::set(self::PARAM_NAME, $form->getFieldValue(self::PARAM_NAME));
$form->setInfoMessage($this->_('Sale Tracking Fraud Protection plugin configuration saved'));
return $form;
}
示例2: 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;
}
示例3: saveSettingsEmailNotifications
public function saveSettingsEmailNotifications(Gpf_Rpc_Form $form) {
Gpf_Settings::set(Pap_Features_SplitCommissions_Definition::NOTIFICATION_ON_SALE_SUMMARY_STATUS,
$this->getFieldValue($form, Pap_Features_SplitCommissions_Definition::NOTIFICATION_ON_SALE_SUMMARY_STATUS));
Gpf_Settings::set(Pap_Features_SplitCommissions_Definition::NOTIFICATION_ON_SALE_SUMMARY,
$this->getFieldValue($form, Pap_Features_SplitCommissions_Definition::NOTIFICATION_ON_SALE_SUMMARY));
}
示例4: save
/**
* @service fraud_protection write
* @param $fields
*/
public function save(Gpf_Rpc_Params $params) {
$form = new Gpf_Rpc_Form($params);
Gpf_Settings::set(Pap_Settings::BANNEDIPS_LIST_SIGNUPS,
$form->getFieldValue(Pap_Settings::BANNEDIPS_LIST_SIGNUPS));
Gpf_Settings::set(Pap_Settings::BANNEDIPS_SIGNUPS,
$form->getFieldValue(Pap_Settings::BANNEDIPS_SIGNUPS));
Gpf_Settings::set(Pap_Settings::BANNEDIPS_SIGNUPS_ACTION,
$form->getFieldValue(Pap_Settings::BANNEDIPS_SIGNUPS_ACTION));
Gpf_Settings::set(Pap_Settings::REPEATING_SIGNUPS_SETTING_NAME,
$form->getFieldValue(Pap_Settings::REPEATING_SIGNUPS_SETTING_NAME));
Gpf_Settings::set(Pap_Settings::REPEATING_SIGNUPS_SECONDS_SETTING_NAME,
$form->getFieldValue(Pap_Settings::REPEATING_SIGNUPS_SECONDS_SETTING_NAME));
Gpf_Settings::set(Pap_Settings::REPEATING_SIGNUPS_ACTION_SETTING_NAME,
$form->getFieldValue(Pap_Settings::REPEATING_SIGNUPS_ACTION_SETTING_NAME));
Gpf_Plugins_Engine::extensionPoint('FraudProtectionSignupsForm.save', $form);
$form->setInfoMessage($this->_("Fraud protections saved"));
return $form;
}
示例5: saveSettings
protected function saveSettings($form) {
Gpf_Settings::set(Gpf_Settings_Gpf::LOG_LEVEL_SETTING_NAME, $form->getFieldValue(Gpf_Settings_Gpf::LOG_LEVEL_SETTING_NAME));
Gpf_Settings::set(Pap_Settings::DEBUG_TYPES, $form->getFieldValue(Pap_Settings::DEBUG_TYPES));
Gpf_Settings::set(Gpf_Settings_Gpf::AUTO_DELETE_EVENTS, $form->getFieldValue(Gpf_Settings_Gpf::AUTO_DELETE_EVENTS));
Gpf_Settings::set(Gpf_Settings_Gpf::AUTO_DELETE_EVENTS_RECORDS_NUM, $form->getFieldValue(Gpf_Settings_Gpf::AUTO_DELETE_EVENTS_RECORDS_NUM));
Gpf_Settings::set(Gpf_Settings_Gpf::AUTO_DELETE_LOGINSHISTORY, $form->getFieldValue(Gpf_Settings_Gpf::AUTO_DELETE_LOGINSHISTORY));
}
示例6: 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;
}
示例7: 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;
}
示例8: save
/**
*
* @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;
}
示例9: save
/**
* @service general_setting write
* @param $fields
*/
public function save(Gpf_Rpc_Params $params) {
$form = new Gpf_Rpc_Form($params);
Gpf_Settings::set(Pap_Settings::PAYOUTS_PAYOUT_OPTIONS_SETTING_NAME, $form->getFieldValue("payoutOptions"));
Gpf_Settings::set(Pap_Settings::PAYOUTS_MINIMUM_PAYOUT_SETTING_NAME, $form->getFieldValue("minimumPayout"));
return $form;
}
示例10: 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;
}
示例11: 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;
}
示例12: 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;
}
示例13: 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));
}