34 Fakoli::using(
"scroll",
"menu",
"site",
"field_renderers",
"role",
"taxonomy",
"versioned_content");
45 $scroll->filter =
new ExclusionFilter(
"menu_id");
50 $title =
"Edit Scroll Details for {$scroll->title}";
54 $title =
"Add a New Scroll";
61 $form->required(
"title",
"identifier");
62 $form->regexp(
"identifier",
"^[\\w_\\-]+$",
"Identifier must consist of letters, numbers, underscores and dashes only.");
64 $form->readonly(
"created_date");
65 $form->unique(
"identifier",
"That identifier is already in use. Please pick a new identifier.");
70 $siteSelect =
new RelatedItemSelectFieldRenderer(
$form,
"site_id",
"Site",
Site,
"ORDER BY site_name",
"site_name",
"site_id");
85 redirect(
"/admin/scrolls");
88 $tabs->queryString =
"scroll_id={$form->data->scroll_id}";
100 <div
class=
'tab_border'>
static usingFeature()
Uses the specified framework feature(s).
static using()
Import the datamodels, views and manifest for the specified component(s).
static assertRole($role, $redirect="", $message="")
Assert that the user has one of the specified roles.
static addTaxonomyFieldRenderers($form, $showSelectAll=true, $group=null, $limitTo=null)
$method
Pull out a simple reference to the request method.