Id()] = $Schema->Name() . " Schema"; } $OptList = new HtmlOptionList("SC", $Options, $SchemaInUse->Id()); $OptList->SubmitOnChange(true); $OptList->PrintHtml(); } /** * Print a search URL to find resources associated with a given controlled name. * @param ControlledName $CName Target controlled name */ function GetSearchUrl(ControlledName $CName) { $SearchParams = new SearchParameterSet(); $SearchParams->AddParameter("=".$CName->Name(), $CName->FieldId()); return "index.php?P=SearchResults&" .$SearchParams->UrlParameterString(); } # ----- MAIN ----------------------------------------------------------------- $SafeSchemaId = defaulthtmlentities($Schema->Id()); ?>

Edit Options for GetDisplayName(); ?>

(selection on the left selects the default valueAllowMultiple() ? "s" : ""; ?> for field)

"(no change)"] + $G_OptionNames; $Index = 0; $DefaultValue = $G_Field->DefaultValue(); foreach ($G_Options as $Id => $CName) { $Qualifier = $CName->Qualifier(); $QName = $Qualifier ? $Qualifier->Name() : ""; $Selected = is_array($DefaultValue) ? in_array($Id, $DefaultValue) : $Id == $DefaultValue; if ($Selected) { $DefaultFound = true; } ?> AllowMultiple()) { ?>
AllowMultiple()) { ?> /> /> ( getAssociatedResources())) ?> resources ) InUse()) { ?> PrintHtml(); ?>
/> "> UsesQualifiers()) { $Qualifiers = $G_Field->AssociatedQualifierList(); if (count($Qualifiers) == 1 && $G_Field->HasItemLevelQualifiers() != true) { $QualifierIds = array_keys($Qualifiers); $Qualifier = array_pop($Qualifiers); $QualifierId = array_pop($QualifierIds); print $Qualifier; print ''; } elseif (count($Qualifiers) >= 1) { $Qualifiers = [-1 => "--"] + $Qualifiers; (new HtmlOptionList( "F_AddQualifier", $Qualifiers, $G_Field->DefaultQualifier() ))->PrintHtml(); } } ?>

Edit Option List

No Option fields were found for editing.

GetItemCount(); # get width of longest button text, add 4 to tune button width $Width = strlen("Export") + 4; foreach ($G_OptionFields as $Field) { $CNFactory = new ControlledNameFactory($Field->Id()); if ($ResourceCount) { $UsageCount = $CNFactory->GetUsageCount(); $UsagePercentage = round(($UsageCount * 100) / $ResourceCount); } else { $UsageCount = 0; $UsagePercentage = 0; } ?>
GetDisplayName(); ?> (GetPossibleValues()); ?> values) Edit Export Description(); ?> Assigned to
 Resources
(%)