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


PHP Gpf_Settings::getAccountSettings方法代码示例

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


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

示例1: execute

	public function execute() {
		$masterAccountSettings = Gpf_Settings::getAccountSettings(Gpf_Application::getInstance()->getAccountId());
			
		if ($masterAccountSettings->get(Pap_settings::NOTIFICATION_DAILY_REPORT) ||
		$masterAccountSettings->get(Pap_settings::NOTIFICATION_WEEKLY_REPORT) ||
		$masterAccountSettings->get(Pap_settings::NOTIFICATION_MONTHLY_REPORT) ||
		Gpf_Settings::get(Pap_settings::AFF_NOTIFICATION_DAILY_REPORT_ENABLED) ||
		Gpf_Settings::get(Pap_settings::AFF_NOTIFICATION_DAILY_REPORT_DEFAULT) ||
		Gpf_Settings::get(Pap_settings::AFF_NOTIFICATION_WEEKLY_REPORT_ENABLED) ||
		Gpf_Settings::get(Pap_settings::AFF_NOTIFICATION_WEEKLY_REPORT_DEFAULT) ||
		Gpf_Settings::get(Pap_settings::AFF_NOTIFICATION_MONTHLY_REPORT_ENABLED) ||
		Gpf_Settings::get(Pap_settings::AFF_NOTIFICATION_MONTHLY_REPORT_DEFAULT)) {
			$this->saveReportsSendTask();
		}
	}
开发者ID:AmineCherrai,项目名称:rostanvo,代码行数:15,代码来源:update_4.5.50.php

示例2: createAccountSettings

 /**
  * @return Gpf_Settings_AccountSettings
  */
 protected function createAccountSettings() {
 	$campaign = new Pap_Common_Campaign();
 	$campaign->setId($this->transaction->getCampaignId());
 	try {
 		$campaign->load();
 		return Gpf_Settings::getAccountSettings($campaign->getAccountId());
 	} catch (Gpf_Exception $e) {
 	}
 	return Gpf_Settings::getAccountSettings(Gpf_Db_Account::DEFAULT_ACCOUNT_ID);
 }
开发者ID:AmineCherrai,项目名称:rostanvo,代码行数:13,代码来源:SendTransactionNotificationEmails.class.php

示例3: initSettings

 protected function initSettings()
 {
     if (!is_null($this->task) && !is_null($this->task->getAccountId()) && $this->task->getAccountId() !== '') {
         $this->accountSettings = Gpf_Settings::getAccountSettings($this->task->getAccountId());
         return;
     }
     $this->accountSettings = Gpf_Settings::getAccountSettings(Gpf_Application::getInstance()->getAccountId());
 }
开发者ID:AmineCherrai,项目名称:rostanvo,代码行数:8,代码来源:Impression.php

示例4: isMailReportOn

 /**
  * This method will be removed when all accounts will be able own affiliates
  */
 protected function isMailReportOn() {
 	$masterMerchantSettings = Gpf_Settings::getAccountSettings(Gpf_Application::getInstance()->getAccountId());
 	$masterMerchantReports = $masterMerchantSettings->get(Pap_Settings::NOTIFICATION_DAILY_REPORT) == Gpf::YES ||
    		$masterMerchantSettings->get(Pap_Settings::NOTIFICATION_WEEKLY_REPORT) == Gpf::YES ||
    		$masterMerchantSettings->get(Pap_Settings::NOTIFICATION_MONTHLY_REPORT) == Gpf::YES;
    	
 	return $masterMerchantReports || $this->isReportsForAffiliatesEnabled();
 }
开发者ID:AmineCherrai,项目名称:rostanvo,代码行数:11,代码来源:AffEmailNotificationsForm.class.php


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