45 $form->unique(
"role",
"That role has already been defined");
46 $form->annotate(
"role",
"<i>WARNING</i> changes may require code updates.");
47 $form->required(
"role",
"name");
48 $form->annotate(
"role",
"The identifier for the role, used by the application code when determining access to features.");
49 $form->annotate(
"name",
"The display name for the role (shown in forms and tables).");
70 $title =
"Edit User Role: {$role->name}";
74 $title =
"Add a New User Role";
85 redirect(
"/admin/roles");
static fireEvent($event, $parameter=null, $mustBeConsumed=false)
Fire an event to all subscribers as detailed in their manifests.
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.
$method
Pull out a simple reference to the request method.