30 throw new Exception(
"Invalid Content Type");
38 $form =
new AutoForm($part,
"POST",
"/action/scroll/scroll_part_dialog?scroll_id={$scroll_id}&scroll_part_id={$scroll_part_id}&content_type={$content_type}");
39 $form->ajaxSubmit(
"function(response) { ScrollPartManager.editPartResponse(response); }");
41 $form->alias(
"css_class",
"CSS Class");
42 $form->hide(
"content_type",
"scroll_id",
"sort_order");
48 $form->data->sort_order = Query::create(
ScrollPart,
"WHERE scroll_id=:s")
49 ->bind(
":s",
$form->data->scroll_id)
50 ->executeValue(
"MAX(sort_order) + 1");
53 if ($part->content_type ==
"HTML")
55 $form->hide(
"php_code_file");
59 $form->hide(
"content");
FakoliException is the base exception class for all Fakoli errors.
static using()
Import the datamodels, views and manifest for the specified component(s).
static end($message="")
Use this method to terminate execution of a script instead of using the php keywords exit() or die().
static checkPermission($component, $name, $account=null)
Check whether a user has a specific permission.
static enableVersioning($form)
$method
Pull out a simple reference to the request method.