當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Gpf_Rpc_Form::setField方法代碼示例

本文整理匯總了PHP中Gpf_Rpc_Form::setField方法的典型用法代碼示例。如果您正苦於以下問題:PHP Gpf_Rpc_Form::setField方法的具體用法?PHP Gpf_Rpc_Form::setField怎麽用?PHP Gpf_Rpc_Form::setField使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Gpf_Rpc_Form的用法示例。


在下文中一共展示了Gpf_Rpc_Form::setField方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: load

 public function load(Gpf_Rpc_Form $form) {
     $form->setField(self::MAX_COMMISSIONS_PER_REFERRAL_NUMBER,
 	$this->getCommissionsAttributeWithDefaultValue($form->getFieldValue('Id'), self::MAX_COMMISSIONS_PER_REFERRAL_NUMBER, -1));
     
 	$form->setField(self::MAX_COMMISSIONS_PER_REFERRAL_PERIOD,
 	$this->getCommissionsAttributeWithDefaultValue($form->getFieldValue('Id'), self::MAX_COMMISSIONS_PER_REFERRAL_PERIOD, -1));
 }
開發者ID:AmineCherrai,項目名稱:rostanvo,代碼行數:7,代碼來源:Main.class.php

示例2: getDescription

 /**
  *
  * @return Gpf_Rpc_Form
  */
 public function getDescription()
 {
     $data = new Gpf_Rpc_Form();
     $data->setField(self::VERSION, Gpf_Application::getInstance()->getVersion());
     $data->setField(self::SCENARION_NAME, $this->name);
     return $data;
 }
開發者ID:AmineCherrai,項目名稱:rostanvo,代碼行數:11,代碼來源:Scenario.class.php

示例3: loadAccountSettings

 public function loadAccountSettings(Gpf_Rpc_Form $form) {
     $form->setField(Pap_Settings::RECAPTCHA_PRIVATE_KEY, Gpf_Settings::get(Pap_Settings::RECAPTCHA_PRIVATE_KEY));
     $form->setField(Pap_Settings::RECAPTCHA_PUBLIC_KEY, Gpf_Settings::get(Pap_Settings::RECAPTCHA_PUBLIC_KEY));
     $form->setField(Pap_Settings::RECAPTCHA_ENABLED, Gpf_Settings::get(Pap_Settings::RECAPTCHA_ACCOUNT_ENABLED));
     $form->setField(Pap_Settings::RECAPTCHA_THEME, Gpf_Settings::get(Pap_Settings::RECAPTCHA_ACCOUNT_THEME));
     return $form;
 }
開發者ID:AmineCherrai,項目名稱:rostanvo,代碼行數:7,代碼來源:Main.class.php

示例4: loadSettingsEmailNotifications

    public function loadSettingsEmailNotifications(Gpf_Rpc_Form $form) {
        $form->setField(Pap_Features_SplitCommissions_Definition::NOTIFICATION_ON_SALE_SUMMARY,
        Gpf_Settings::get(Pap_Features_SplitCommissions_Definition::NOTIFICATION_ON_SALE_SUMMARY));

        $form->setField(Pap_Features_SplitCommissions_Definition::NOTIFICATION_ON_SALE_SUMMARY_STATUS,
        Gpf_Settings::get(Pap_Features_SplitCommissions_Definition::NOTIFICATION_ON_SALE_SUMMARY_STATUS));   
    }
開發者ID:AmineCherrai,項目名稱:rostanvo,代碼行數:7,代碼來源:Config.class.php

示例5: setField

 public function setField($name, $value)
 {
     if (is_scalar($value) || $value instanceof Gpf_Rpc_Serializable) {
         $this->fields->setField($name, $value);
     } else {
         throw new Gpf_Exception("Not supported value");
     }
 }
開發者ID:AmineCherrai,項目名稱:rostanvo,代碼行數:8,代碼來源:FormRequest.class.php

示例6: encodeSize

 /**
  * stores width x height to the size field.
  *
  * @param Gpf_Rpc_Form $form
  * @param String $sizeFieldName
  */
 public function encodeSize(Gpf_Rpc_Form $form, $sizeFieldName) {
     if($form->getFieldValue($sizeFieldName) == Pap_Db_Banner::SIZE_PREDEFINED) {
         $form->setField($sizeFieldName, $form->getFieldValue($sizeFieldName).$form->getFieldValue('size_predefined'));
     }
     if($form->getFieldValue($sizeFieldName) == Pap_Db_Banner::SIZE_OWN) {
         $form->setField($sizeFieldName, $form->getFieldValue($sizeFieldName).$form->getFieldValue('size_width').'x'.$form->getFieldValue('size_height'));
     }
 }
開發者ID:AmineCherrai,項目名稱:rostanvo,代碼行數:14,代碼來源:Banner.class.php

示例7: currencyLoad

 public function currencyLoad(Gpf_Rpc_Form $form) {
     try {
         $form->setField('multiple_currencies', Gpf_Settings::get(Pap_Settings::MULTIPLE_CURRENCIES));
     } catch (Gpf_Exception $e) {
         $form->setField('multiple_currencies', 'N');
     }
     return Gpf_Plugins_Engine::PROCESS_CONTINUE;
 }
開發者ID:AmineCherrai,項目名稱:rostanvo,代碼行數:8,代碼來源:Main.class.php

示例8: load

 /**
  * @anonym 
  * @param Gpf_Rpc_Params $params
  * @service
  * @return Gpf_Rpc_Form
  */
 public function load(Gpf_Rpc_Params $params)
 {
     $form = new Gpf_Rpc_Form($params);
     $form->setField(self::LICENSE_AGREE_NAME, '');
     $form->setField(self::LICENSE_ID_NAME, '');
     $form->setField(self::VERSION_NAME, Gpf_Application::getInstance()->getVersion());
     return $form;
 }
開發者ID:AmineCherrai,項目名稱:rostanvo,代碼行數:14,代碼來源:AcceptLicense.class.php

示例9: load

 /**
  * special handling
  *
  * @service password_constraints read
  * @param $fields
  * @return Gpf_Rpc_Form
  */
 public function load(Gpf_Rpc_Params $params)
 {
     $form = new Gpf_Rpc_Form($params);
     $form->setField('minLength', Gpf_Settings::get(Gpf_Settings_Gpf::PASSWORD_MIN_LENGTH));
     $form->setField('maxLength', Gpf_Settings::get(Gpf_Settings_Gpf::PASSWORD_MAX_LENGTH));
     $form->setField('azChars', Gpf_Settings::get(Gpf_Settings_Gpf::PASSWORD_LETTERS));
     $form->setField('digitsChars', Gpf_Settings::get(Gpf_Settings_Gpf::PASSWORD_DIGITS));
     $form->setField('specialChars', Gpf_Settings::get(Gpf_Settings_Gpf::PASSWORD_SPECIAL));
     return $form;
 }
開發者ID:AmineCherrai,項目名稱:rostanvo,代碼行數:17,代碼來源:PasswordConstraintForm.class.php

示例10: load

	/**
     * @service invoice_format read
     * @param $fields
     */
    public function load(Gpf_Rpc_Params $params) {
        $form = new Gpf_Rpc_Form($params);

        $form->setField(Pap_Settings::GENERATE_INVOICES, Gpf_Settings::get(Pap_Settings::GENERATE_INVOICES));
        $form->setField(Pap_Settings::INVOICE_BCC_RECIPIENT, Gpf_Settings::get(Pap_Settings::INVOICE_BCC_RECIPIENT));

        $form->setField("payoutInvoice",
        	Gpf_Settings::get(Pap_Settings::PAYOUT_INVOICE));
        return $form;
    }
開發者ID:AmineCherrai,項目名稱:rostanvo,代碼行數:14,代碼來源:InvoiceFormatForm.class.php

示例11: load

 /**
  * @service regional_settings read
  * @param $fields
  */
 public function load(Gpf_Rpc_Params $params)
 {
     $form = new Gpf_Rpc_Form($params);
     $form->setField(Gpf_Settings_Gpf::REGIONAL_SETTINGS_IS_DEFAULT, Gpf_Settings::get(Gpf_Settings_Gpf::REGIONAL_SETTINGS_IS_DEFAULT));
     $form->setField(Gpf_Settings_Gpf::REGIONAL_SETTINGS_DATE_FORMAT, Gpf_Settings::get(Gpf_Settings_Gpf::REGIONAL_SETTINGS_DATE_FORMAT));
     $form->setField(Gpf_Settings_Gpf::REGIONAL_SETTINGS_TIME_FORMAT, Gpf_Settings::get(Gpf_Settings_Gpf::REGIONAL_SETTINGS_TIME_FORMAT));
     $form->setField(Gpf_Settings_Gpf::REGIONAL_SETTINGS_THOUSANDS_SEPARATOR, Gpf_Settings::get(Gpf_Settings_Gpf::REGIONAL_SETTINGS_THOUSANDS_SEPARATOR));
     $form->setField(Gpf_Settings_Gpf::REGIONAL_SETTINGS_DECIMAL_SEPARATOR, Gpf_Settings::get(Gpf_Settings_Gpf::REGIONAL_SETTINGS_DECIMAL_SEPARATOR));
     return $form;
 }
開發者ID:AmineCherrai,項目名稱:rostanvo,代碼行數:14,代碼來源:RegionalSettingsForms.class.php

示例12: load

	/**
	 * @service affiliate_signup_setting read
	 * @param $fields
	 */
	public function load(Gpf_Rpc_Params $params) {
		$form = new Gpf_Rpc_Form($params);
		$form->setField(Pap_Settings::POST_SIGNUP_TYPE_SETTING_NAME, Gpf_Settings::get(Pap_Settings::POST_SIGNUP_TYPE_SETTING_NAME));

		$form->setField(Pap_Settings::POST_SIGNUP_URL_SETTING_NAME, Gpf_Settings::get(Pap_Settings::POST_SIGNUP_URL_SETTING_NAME));

		$form->setField(Pap_Settings::SIGNUP_TERMS_SETTING_NAME, Gpf_Settings::get(Pap_Settings::SIGNUP_TERMS_SETTING_NAME));

		$form->setField(Pap_Settings::FORCE_TERMS_ACCEPTANCE_SETTING_NAME, Gpf_Settings::get(Pap_Settings::FORCE_TERMS_ACCEPTANCE_SETTING_NAME));

		$form->setField(Pap_Settings::INCLUDE_PAYOUT_OPTIONS, Gpf_Settings::get(Pap_Settings::INCLUDE_PAYOUT_OPTIONS));

		$form->setField(Pap_Settings::PAYOUT_OPTIONS, Gpf_Settings::get(Pap_Settings::PAYOUT_OPTIONS));

		$form->setField(Pap_Settings::FORCE_PAYOUT_OPTION, Gpf_Settings::get(Pap_Settings::FORCE_PAYOUT_OPTION));

		$form->setField('assignAffiliateTo', Gpf_Settings::get(Pap_Settings::ASSIGN_NON_REFERRED_AFFILIATE_TO));

		//		$form->setField(self::OPTIONAL_PAYOUT_FIELDS,
		//		Gpf_Settings::get(self::OPTIONAL_PAYOUT_FIELDS));

		$form->setField(Pap_Settings::AFFILIATE_APPROVAL, Gpf_Settings::get(Pap_Settings::AFFILIATE_APPROVAL));

		Gpf_Plugins_Engine::extensionPoint('PostAffiliate.AffiliateSignupForm.load', $form);

		return $form;
	}
開發者ID:AmineCherrai,項目名稱:rostanvo,代碼行數:31,代碼來源:AffiliateSignupForm.class.php

示例13: load

	/**
	 * @service general_setting read
	 * @param $fields
	 */
	public function load(Gpf_Rpc_Params $params) {
		$form = new Gpf_Rpc_Form($params);

        $form->setField("payoutOptions",
        	Gpf_Settings::get(
        		Pap_Settings::PAYOUTS_PAYOUT_OPTIONS_SETTING_NAME));

        $form->setField("minimumPayout",
        	Gpf_Settings::get(Pap_Settings::PAYOUTS_MINIMUM_PAYOUT_SETTING_NAME));

		return $form;
	}
開發者ID:AmineCherrai,項目名稱:rostanvo,代碼行數:16,代碼來源:GeneralSettingsForm.class.php

示例14: load

 /**
  * @service cronjob read
  * 
  * @param Gpf_Rpc_Params $params
  * @return Gpf_Rpc_Data
  */
 public function load(Gpf_Rpc_Params $params) {
     $form = new Gpf_Rpc_Form($params);
     
     $runner = new Gpf_Tasks_Runner();
     if (!$runner->isRunningOK()) {
         $form->setField('warningMessage', $this->_('Cron job is not running'));
     }
     $form->setField('lastRunTime', $runner->getLastRunTime());
     $form->setField('cronCommand', $this->getCronCommand());
     $form->setField(Gpf_Settings_Gpf::CRON_RUN_INTERVAL, Gpf_Settings::get(Gpf_Settings_Gpf::CRON_RUN_INTERVAL));
     return $form;
 }
開發者ID:AmineCherrai,項目名稱:rostanvo,代碼行數:18,代碼來源:CronJobIntegration.class.php

示例15: load

    /**
     * @service logging_setting read
     * @param $fields
     */
    public function load(Gpf_Rpc_Params $params) {
        $form = new Gpf_Rpc_Form($params);

        $form->setField(Gpf_Settings_Gpf::LOG_LEVEL_SETTING_NAME, Gpf_Settings::get(Gpf_Settings_Gpf::LOG_LEVEL_SETTING_NAME));
       	$form->setField(Pap_Settings::DEBUG_TYPES, Gpf_Settings::get(Pap_Settings::DEBUG_TYPES));
        $form->setField(Pap_Settings::AUTO_DELETE_EVENTS, Gpf_Settings::get(Pap_Settings::AUTO_DELETE_EVENTS));
        $form->setField(Pap_Settings::AUTO_DELETE_EVENTS_RECORDS_NUM, Gpf_Settings::get(Pap_Settings::AUTO_DELETE_EVENTS_RECORDS_NUM));

        $form->setField(Pap_Settings::AUTO_DELETE_LOGINSHISTORY, Gpf_Settings::get(Pap_Settings::AUTO_DELETE_LOGINSHISTORY));

       	return $form;
    }
開發者ID:AmineCherrai,項目名稱:rostanvo,代碼行數:16,代碼來源:LoggingForm.class.php


注:本文中的Gpf_Rpc_Form::setField方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。