18 require_once SQ_CORE_PACKAGE_PATH.
'/page/page.inc';
43 parent::__construct($assetid);
60 if (!parent::_createAdditional($link))
return FALSE;
63 $GLOBALS[
'SQ_SYSTEM']->am->includeAsset(
'form_email');
65 $copy_link = Array(
'asset' => &$this,
'link_type' => SQ_LINK_TYPE_2,
'is_dependant' => 1,
'is_exclusive' => 1);
67 $form->setAttrValue(
'name', translate(
'cms_form_contents'));
68 return $form->create($copy_link);
82 $page_links = parent::_getAllowedLinks();
83 $page_links[SQ_LINK_TYPE_2][
'form_email'] = Array(
'card' =>
'1',
'exclusive' => TRUE);
105 if (is_null($form) && !array_get_index($this->_tmp,
'__creating__', FALSE)) {
106 trigger_localised_error(
'CMS0023', E_USER_ERROR, $this->name, $this->
id);
110 return parent::printFrontend();
125 $GLOBALS[
'SQ_SYSTEM']->pm->startTimer($this);
130 if (!array_get_index($this->_tmp,
'__creating__', FALSE)) {
131 if (is_null($form)) {
132 trigger_localised_error(
'CMS0023', E_USER_ERROR, $this->name, $this->
id);
139 $GLOBALS[
'SQ_SYSTEM']->pm->stopTimer($this);
155 $form_link = $GLOBALS[
'SQ_SYSTEM']->am->getLink($this->
id, SQ_LINK_TYPE_2,
'form', FALSE,
'',
'major');
156 if (!empty($form_link)) {
157 $form = $GLOBALS[
'SQ_SYSTEM']->am->getAsset($form_link[
'minorid'], $form_link[
'minor_type_code']);