本文整理汇总了PHP中UI::GetRegExtraFieldsForSmarty方法的典型用法代码示例。如果您正苦于以下问题:PHP UI::GetRegExtraFieldsForSmarty方法的具体用法?PHP UI::GetRegExtraFieldsForSmarty怎么用?PHP UI::GetRegExtraFieldsForSmarty使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UI
的用法示例。
在下文中一共展示了UI::GetRegExtraFieldsForSmarty方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ValidateExtraData
public static function ValidateExtraData($extra_data, $Registry)
{
$extra_fields = null;
if (count($registry_config->domain->registration->extra_fields->field) > 0) {
$extra_fields = UI::GetRegExtraFieldsForSmarty($registry_config);
foreach ($extra_fields as $field) {
if ($field["required"] == 1 && $field["type"] != "checkbox") {
if (!$Validator->IsNotEmpty($this->extra_data[$field['name']])) {
$ErrList->AddMessage(sprintf(_("%s required"), ucfirst($field["description"])));
}
}
}
}
}
示例2: array
$_SESSION["domaininfo"][$v["type"]] = $_POST[$v["type"]];
}
}
catch (Exception $e)
{
$exception->AddMessage($e->getMessage());
}
}
}
if ($exception->HasMessages())
throw $exception;
$fields = $registry_config->domain->registration->extra_fields->xpath("field");
if (count($fields) > 0)
$display["add_fields"] = UI::GetRegExtraFieldsForSmarty($registry_config);
else
$display["add_fields"] = false;
$_SESSION["wiz_contacts"] = true;
if ($_SESSION["domaininfo"]["id"])
{
$domaininfo = $db->GetRow("SELECT * FROM domains WHERE id=?", array($_SESSION["domaininfo"]["id"]));
$display["ns1"] = $domaininfo["ns1"];
$display["ns2"] = $domaininfo["ns2"];
$additional_data = $db->Execute("SELECT * FROM domains_data WHERE domainid=?", array($_SESSION["domaininfo"]["id"]));
while($dt = $additional_data->FetchRow())
$display["add_fields_post"][$dt["key"]] = $dt["value"];
示例3: ShowExtra
protected function ShowExtra()
{
$Factory = RegistryModuleFactory::GetInstance();
$tlds = $this->GetTLDs();
$extra_forms = array();
foreach ($tlds as $tld) {
$Registry = $Factory->GetRegistryByExtension($tld);
$ConfigXml = $Registry->GetManifest()->GetSectionConfig();
$fields = $ConfigXml->domain->registration->extra_fields->xpath("field");
if (count($fields)) {
$extra_forms[] = array("title" => sprintf(_("%s additional information"), strtoupper($tld)), "tld" => $tld, "fields" => UI::GetRegExtraFieldsForSmarty($ConfigXml));
}
}
if ($extra_forms) {
$this->display["extra_forms"] = $extra_forms;
} else {
// Skip this step
$this->SkipStep();
}
}