41 $module->filter =
new InclusionFilter(
"module_id",
"title",
"content_type",
"css_class",
"menu_id",
"menu_parameters",
"global",
"global_position");
45 $form->required(
"title");
46 $form->hide(
"content_type");
47 $form->alias(
"css_class",
"CSS Class");
53 $menuSelect =
new RelatedItemSelectFieldRenderer(
$form,
"menu_id",
"Menu",
Menu,
"ORDER BY name",
"name",
"menu_id");
59 redirect(
"/admin/modules");
66 $title =
"Edit Module: {$module->title}";
67 $form->button(
"Run the Module",
"/admin/module_preview?module_id=$module_id");
71 $title =
"Add a New Menu Module";
static using()
Import the datamodels, views and manifest for the specified component(s).
static usingFile()
Uses the specified framework file(s) from the framework directory.
Defines the Module class.
$method
Pull out a simple reference to the request method.