本文整理匯總了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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');