本文整理汇总了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();
}
}
示例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);
}
示例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());
}
示例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();
}