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


PHP DataForm::AppendField方法代碼示例

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


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

示例1: GetTestConfigurationForm

 public static function GetTestConfigurationForm()
 {
     $CF = new DataForm();
     $CF->AppendField(new DataFormField("SSLCertPath", FORM_FIELD_TYPE::TEXT, "Path to SSL certificate", 1));
     $CF->AppendField(new DataFormField("SSLCertPass", FORM_FIELD_TYPE::TEXT, "SSL private key password", 1));
     return $CF;
 }
開發者ID:rchicoria,項目名稱:epp-drs,代碼行數:7,代碼來源:class.RegistryModule.php

示例2: GetConfigurationForm

 /**
  * Must return a DataForm object that will be used to draw a configuration form for this module.
  * @return DataForm object
  */
 public static function GetConfigurationForm()
 {
     $Form = new DataForm();
     $Form->AppendField(new DataFormField("ServerHost", FORM_FIELD_TYPE::TEXT, "API hostname", 1));
     $Form->AppendField(new DataFormField("Login", FORM_FIELD_TYPE::TEXT, "Reseller Login", 1));
     $Form->AppendField(new DataFormField("Password", FORM_FIELD_TYPE::TEXT, "Reseller Password", 1));
     return $Form;
 }
開發者ID:rchicoria,項目名稱:epp-drs,代碼行數:12,代碼來源:class.RegistryModule.php

示例3: GetConfigurationForm

		/**
		 * Must return a DataForm object that will be used to draw a configuration form for this module.
		 * @return DataForm object
		 */
		public function GetConfigurationForm()
		{
			$ConfigurationForm = new DataForm();
			$ConfigurationForm->AppendField( new DataFormField("business", FORM_FIELD_TYPE::TEXT, "Business E-mail"));
			$ConfigurationForm->AppendField( new DataFormField("receiver", FORM_FIELD_TYPE::TEXT, "Receiver E-mail"));
			$ConfigurationForm->AppendField( new DataFormField("isdemo", FORM_FIELD_TYPE::CHECKBOX , "Test mode", 1));
			
			return $ConfigurationForm;
		}
開發者ID:rchicoria,項目名稱:epp-drs,代碼行數:13,代碼來源:class.PaymentModule.php

示例4: GetPaymentForm

		/**
		* You must construct and return DataForm object.
		* @return DataForm Form template object
		*/
		public function GetPaymentForm()
		{			
			$ConfigurationForm = new DataForm();
			$ConfigurationForm->AppendField( new DataFormField("ccn", FORM_FIELD_TYPE::TEXT, "Credit Card Number", 1));
			$ConfigurationForm->AppendField( new DataFormField("ctype", FORM_FIELD_TYPE::SELECT, "Credit Card Type", 1, array('VISA' => 'VISA', 'American Express' => 'American Express (AMEX)', 'Euroline' => 'Euroline', 'MasterCard' => 'MasterCard')));
			$ConfigurationForm->AppendField( new DataFormField("Expdate", FORM_FIELD_TYPE::DATE , "Credit Card Expiration", 1));
			$ConfigurationForm->AppendField( new DataFormField("cvv", FORM_FIELD_TYPE::TEXT , "Credit Card CVV Number", 1));			
			
			return $ConfigurationForm;
		}
開發者ID:rchicoria,項目名稱:epp-drs,代碼行數:14,代碼來源:class.PaymentModule.php

示例5: GetConfigurationForm

 public static function GetConfigurationForm()
 {
     $ConfigurationForm = new DataForm();
     $ConfigurationForm->SetInlineHelp("");
     $ConfigurationForm->AppendField(new DataFormField("IsEnabled", FORM_FIELD_TYPE::CHECKBOX, "Enabled"));
     $ReflectionInterface = new ReflectionClass("IEventObserver");
     $events = $ReflectionInterface->getMethods();
     $ConfigurationForm->AppendField(new DataFormField("", FORM_FIELD_TYPE::SEPARATOR, "Request URL on following events"));
     foreach ($events as $event) {
         $name = substr($event->getName(), 2);
         $ConfigurationForm->AppendField(new DataFormField("{$event->getName()}NotifyURL", FORM_FIELD_TYPE::TEXT, "{$name} URL", false, array(), null, null, EVENT_TYPE::GetEventDescription($name)));
     }
     return $ConfigurationForm;
 }
開發者ID:rakesh-mohanta,項目名稱:scalr,代碼行數:14,代碼來源:class.RESTEventObserver.php

示例6: GetConfigurationForm

 public static function GetConfigurationForm()
 {
     $ConfigurationForm = new DataForm();
     $ConfigurationForm->SetInlineHelp("");
     $methods = get_class_methods(__CLASS__);
     foreach ($methods as $method) {
         if ($method != '__construct' && $method != 'GetConfigurationForm') {
             $ConfigurationForm->AppendField(new DataFormField("{$method}URL", FORM_FIELD_TYPE::TEXT, "{$method} URL"));
         }
     }
     return $ConfigurationForm;
 }
開發者ID:rchicoria,項目名稱:epp-drs,代碼行數:12,代碼來源:class.RESTInvoiceObserver.php

示例7: OnDomainCreated


//.........這裏部分代碼省略.........
			try
			{
				$ns1->IPAddr = gethostbyname('ns.hostdad.com');
				$Resp = $this->Registry->GetModule()->UpdateNameserverHost($ns1);
				
				$this->TestCase->assertTrue($Resp->Result, 'Update domain nameserver');
			}
			catch (Exception $e)
			{
				return $this->TestCase->fail('Update domain nameserver. Error: ' . $e->getMessage());
			}
				
				
			////
			// 12. Renew Domain for 2 years
			//
				
			/*
			try
			{
				$this->Registry->RenewDomain($Domain, $extra=array('period' => 2));
				
				$this->TestCase->assertFalse(true, 'Domain renewal. Exception expected');
			}
			catch (Exception $e)
			{
				$this->TestCase->assertTrue($e->getMessage() == 'A domain can not be renewed earlier that 365 days from its expiration', 'Domain renewal');
			}
			*/
				
			
			// secondary registry
			$DataForm = new DataForm();
			$DataForm->AppendField( new DataFormField("ServerHost", FORM_FIELD_TYPE::TEXT, null, null, null, null, 'https://devepp.ics.forth.gr:700/epp/proxy'));
			$DataForm->AppendField( new DataFormField("Login", FORM_FIELD_TYPE::TEXT, null, null, null, null, 'digitalbox1'));
			$DataForm->AppendField( new DataFormField("Password", FORM_FIELD_TYPE::TEXT , null, null, null, null, 'agrigo'));
			$DataForm->AppendField( new DataFormField("ClientPrefix", FORM_FIELD_TYPE::TEXT, null, null, null, null, '371'));	
			$DataForm->AppendField( new DataFormField("UseSSLCert", FORM_FIELD_TYPE::CHECKBOX, null, null, null, null, '1'));	
			$DataForm->AppendField( new DataFormField("SSLpwd", FORM_FIELD_TYPE::TEXT, null, null, null, null, 'devepp'));	
			$DataForm->AppendField( new DataFormField("CLID", FORM_FIELD_TYPE::TEXT, null, null, null, null, 'digitalbox1'));
			$DataForm->AppendField( new DataFormField("SSLCertPath", FORM_FIELD_TYPE::TEXT, null, null, null, null, '/home/marat/webdev/epp-drs/branches/dev/app/modules/registries/EPPGR/ssl/cert.pem'));		
			
			
			$Module = new EPPGRRegistryModule();
			$Module->InitializeModule('gr', $DataForm);
			$Registry2 = new Registry($Module);		
			try
			{
				$ok = $Registry2->TransferRequest($Domain, array('pw' => $Domain->AuthCode));
				
				$this->TestCase->assertTrue($ok, 'Request domain transfer from another session');
			}
			catch (Exception $e)
			{
				$this->TestCase->fail('Request domain transfer from another session. Error: ' . $e->getMessage());
			}
			
			////
			// 17. Approve the Transfer using your OT&E1 account
			//
			
			try
			{
				$ok = $this->Registry->TransferApprove($Domain);
				
				$this->TestCase->assertTrue($ok, 'Approve transfer');
開發者ID:rchicoria,項目名稱:epp-drs,代碼行數:67,代碼來源:tests.php


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