10 $form =
new AutoForm(
$sectionContent,
"POST",
"/action/section/content_properties_json?save=1",
"SectionContent_form");
11 $form->ajaxSubmit(
"function(result) {sectionContentPropertyManager.propertiesChanged(result);}");
12 $form->button(
"Cancel",
"sectionContentPropertyManager.cancel()",
null,
true);
14 $form->hide(
"section_id",
"identifier");
27 $form->submitLabel =
"Update Properties";
41 echo
$form->writeScript();
static usingFeature()
Uses the specified framework feature(s).
static JSONerror($error, $sendType=true)
Return an error code to the client in JSON format, as an object with the single property 'error'.
static using()
Import the datamodels, views and manifest for the specified component(s).
static JSONreturn($object, $sendType=true, $wrap=true)
Return a DataItem to the client in JSON format.
static assertRole($role, $redirect="", $message="")
Assert that the user has one of the specified roles.
static createPermissionsFieldRenderer($form, $field, $label="")
static getRolesArray()
Retrieves the array of roles and their names for the current site for use in a CMS form.
$method
Pull out a simple reference to the request method.