18 require_once SQ_CORE_PACKAGE_PATH.
'/page/page_edit_fns.inc';
41 parent::__construct();
59 $form = $asset->getForm();
62 trigger_localised_error(
'CMS0022', E_USER_ERROR, $asset->name, $asset->id,
'Contents');
67 $o->setRedirect($form->getBackendHref(
'contents'));
71 $_SESSION[
'sq_nav_history'][(count($_SESSION[
'sq_nav_history']) - 1)][
'screen'] =
'details';
91 $form = $asset->getForm();
94 trigger_localised_error(
'CMS0022', E_USER_ERROR, $asset->name, $asset->id);
99 $o->setRedirect($form->getBackendHref(
'log'));
103 $_SESSION[
'sq_nav_history'][(count($_SESSION[
'sq_nav_history']) - 1)][
'screen'] =
'details';
122 $form = $asset->getForm();
123 if (is_null($form)) {
124 trigger_localised_error(
'CMS0022', E_USER_ERROR, $asset->name, $asset->id);
129 $edit_fns = $form->getEditFns();
130 return $edit_fns->paintSubmissions($form, $o, $prefix);
315 $form = $asset->getForm();
316 if (is_null($form)) {
317 trigger_localised_error(
'CMS0022', E_USER_ERROR, $asset->name, $asset->id);
321 $edit_fns = $form->getEditFns();
322 if (method_exists($edit_fns, $edit_method)) {
323 return $edit_fns->$edit_method($form, $o, $prefix);
325 trigger_localised_error(
'CMS0067', E_USER_ERROR, $form->name, $edit_method);
342 return $asset->writeAccess(
'attributes');