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