本文整理汇总了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 > 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;
}
示例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>" . "• Set <b>Result URL</b> to <b>%s</b><br>" . "• Set <b>Success URL</b> to <b>%s</b><br>" . "• Set <b>Fail URL</b> to <b>%s</b><br>" . "• Set <b>Checksum method</b> to <b>MD5</b><br>" . "• 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;
}
示例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;
}
示例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;
}