当前位置: 首页>>代码示例>>PHP>>正文


PHP DataForm::SetInlineHelp方法代码示例

本文整理汇总了PHP中DataForm::SetInlineHelp方法的典型用法代码示例。如果您正苦于以下问题:PHP DataForm::SetInlineHelp方法的具体用法?PHP DataForm::SetInlineHelp怎么用?PHP DataForm::SetInlineHelp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在DataForm的用法示例。


在下文中一共展示了DataForm::SetInlineHelp方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: GetConfigurationForm

 public static function GetConfigurationForm()
 {
     $ConfigurationForm = new DataForm();
     $ConfigurationForm->SetInlineHelp("You must set <b>viaPoll</b> = <b>Yes</b> under <i>Registrar &gt; Update registrar details</i> in your SIDN registrar panel");
     $ConfigurationForm->AppendField(new DataFormField("Login", FORM_FIELD_TYPE::TEXT, "Login", 1));
     $ConfigurationForm->AppendField(new DataFormField("Password", FORM_FIELD_TYPE::TEXT, "Passsword", 1));
     $ConfigurationForm->AppendField(new DataFormField("ServerHost", FORM_FIELD_TYPE::TEXT, "Server host", 1));
     $ConfigurationForm->AppendField(new DataFormField("ServerPort", FORM_FIELD_TYPE::TEXT, "Server port", 1));
     $ConfigurationForm->AppendField(new DataFormField("RegistrarCLID", FORM_FIELD_TYPE::TEXT, "Registrar EPP clID", 1));
     return $ConfigurationForm;
 }
开发者ID:rchicoria,项目名称:epp-drs,代码行数:11,代码来源:class.RegistryModule.php

示例2: GetConfigurationForm

 /**
  * You must construct and return DataForm object.
  * @return DataForm Form template object
  */
 public function GetConfigurationForm()
 {
     $Form = new DataForm();
     $Form->SetInlineHelp(sprintf("You must configure your Webmoney account before you can use this module. <br>" . "Log in to Merchant WebMoney Transfer and open configuration screen.<br>" . "&bull; Set <b>Result URL</b> to <b>%s</b><br>" . "&bull; Set <b>Success URL</b> to <b>%s</b><br>" . "&bull; Set <b>Fail URL</b> to <b>%s</b><br>" . "&bull; Set <b>Checksum method</b> to <b>MD5</b><br>" . "&bull; Make sure that <b>Secret key</b> in the form below matches the corresponding field in your Merhant configuration form.", CONFIG::$SITE_URL . "/ipn.php", CONFIG::$SITE_URL . "/payment_success.php", CONFIG::$SITE_URL . "/payment_failed.php"));
     $Form->AppendField(new DataFormField('Purse', FORM_FIELD_TYPE::TEXT, 'Purse ID', true));
     $Form->AppendField(new DataFormField('SecretKey', FORM_FIELD_TYPE::TEXT, 'Secret key', true));
     // TODO: in future versions
     //$Form->AppendField(new DataFormField('ChecksumAlgo', FORM_FIELD_TYPE::SELECT, 'Checksum algorithm', true, array('MD5' => 'MD5', 'WM' => 'SIGN')));
     //$Form->AppendField(new DataFormField('WMCertPath', FORM_FIELD_TYPE::TEXT, 'WebMoney certificate path', true));
     $Form->AppendField(new DataFormField('TestPaymentSuccess', FORM_FIELD_TYPE::CHECKBOX, 'Test payment success'));
     return $Form;
 }
开发者ID:rchicoria,项目名称:epp-drs,代码行数:16,代码来源:class.PaymentModule.php

示例3: 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

示例4: 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


注:本文中的DataForm::SetInlineHelp方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。