45 $module->filter =
new InclusionFilter(
"module_id",
"title",
"php_code_file",
"content_type",
"css_class",
"global",
"global_position");
49 $form->required(
"title");
50 $form->hide(
"content_type");
51 $form->alias(
"css_class",
"CSS Class");
63 redirect(
"/admin/modules");
70 $title =
"Edit Module: {$module->title}";
71 $form->button(
"Run the Module",
"/admin/module_preview?module_id=$module_id");
75 $title =
"Add a New Code 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.
static assertRole($role, $redirect="", $message="")
Assert that the user has one of the specified roles.
Defines the Module class.
$method
Pull out a simple reference to the request method.