當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。