parse() 보호된 메소드

Parse the form
protected parse ( )
예제 #1
0
파일: Add.php 프로젝트: bwgraves/forkcms
 /**
  * Parse the form
  */
 protected function parse()
 {
     parent::parse();
     // prevent XSS
     $filter = \SpoonFilter::arrayMapRecursive('htmlspecialchars', $this->filter);
     $this->tpl->assign($filter);
 }
예제 #2
0
 public function parse()
 {
     parent::parse();
     $url = BackendModel::getURLForBlock($this->URL->getModule(), 'Category');
     $url404 = BackendModel::getURL(404);
     if ($url404 != $url) {
         $this->tpl->assign('detailURL', SITE_URL . $url);
     }
 }
 /**
  * Parse the form
  *
  * @return  void
  */
 protected function parse()
 {
     // call parent
     parent::parse();
     // assign the active record and additional variables
     $this->tpl->assign('item', $this->record);
     // assign image input fields
     $this->tpl->assign('imageInput', $this->ImageInput);
 }
예제 #4
0
 /**
  * Parse the page
  */
 protected function parse()
 {
     parent::parse();
     // assign the url for the detail page
     $url = BackendModel::getURLForBlock($this->URL->getModule(), 'Group');
     $url404 = BackendModel::getURL(404);
     if ($url404 != $url) {
         $this->tpl->assign('detailURL', SITE_URL . $url);
     }
 }
예제 #5
0
파일: Add.php 프로젝트: bwgraves/forkcms
 /**
  * Parse the page
  */
 protected function parse()
 {
     parent::parse();
     // get url
     $url = BackendModel::getURLForBlock($this->URL->getModule(), 'detail');
     $url404 = BackendModel::getURL(404);
     // parse additional variables
     if ($url404 != $url) {
         $this->tpl->assign('detailURL', SITE_URL . $url);
     }
 }
예제 #6
0
 /**
  * Parse the page
  */
 protected function parse()
 {
     parent::parse();
     $this->tpl->assign('meta', $this->selectedMeta !== false);
     if ($this->frm->isSubmitted() && $this->frm->getField('search')->isChecked()) {
         $this->tpl->assign('search', true);
     } else {
         $this->tpl->assign('search', $this->selectedSearch !== false);
     }
 }
예제 #7
0
 protected function parse()
 {
     parent::parse();
     $this->tpl->assign('fieldLanguages', $this->fieldLanguages);
 }
예제 #8
0
 /**
  * Parses stuff into the template
  */
 protected function parse()
 {
     parent::parse();
     $this->tpl->assign('product', $this->product);
 }
예제 #9
0
 /**
  * Parse the page
  */
 protected function parse()
 {
     $this->tpl->assign('item', $this->record);
     parent::parse();
 }
예제 #10
0
파일: Add.php 프로젝트: forkcms/forkcms
 /**
  * Parse
  */
 protected function parse()
 {
     parent::parse();
     $this->tpl->assign('notifyProfile', $this->notifyProfile);
 }
예제 #11
0
 /**
  * Parse the form
  */
 protected function parse()
 {
     parent::parse();
     // assign form errors
     $this->tpl->assign('formErrors', (string) $this->frm->getErrors());
 }
예제 #12
0
 /**
  * Parse the page
  */
 protected function parse()
 {
     parent::parse();
 }
 /**
  * Parse the form
  *
  * @return void
  */
 protected function parse()
 {
     // call parent
     parent::parse();
     $url = BackendModel::getURLForBlock($this->URL->getModule(), 'Detail');
     $url404 = BackendModel::getURL(404);
     // parse additional variables
     if ($url404 != $url) {
         $this->tpl->assign('detailURL', SITE_URL . $url);
     }
     // assign categories
     $this->tpl->assign('categories', $this->categories);
 }
예제 #14
0
 /**
  * Parse the page
  */
 protected function parse()
 {
     parent::parse();
     // add css
     $this->header->addCSS('/src/Backend/Modules/' . $this->getModule() . '/Layout/Css/agenda.css', null, true);
     // get url
     $url = BackendModel::getURLForBlock($this->URL->getModule(), 'detail');
     $url404 = BackendModel::getURL(404);
     // parse additional variables
     if ($url404 != $url) {
         $this->tpl->assign('detailURL', SITE_URL . $url);
     }
     $this->record['url'] = $this->meta->getURL();
 }
예제 #15
0
파일: Add.php 프로젝트: forkcms/forkcms
 /**
  * Parse
  */
 protected function parse()
 {
     parent::parse();
     // parse some variables
     $this->tpl->assign('templates', $this->templates);
     $this->tpl->assign('isGod', $this->isGod);
     $this->tpl->assign('positions', $this->positions);
     $this->tpl->assign('extrasData', json_encode(BackendExtensionsModel::getExtrasData()));
     $this->tpl->assign('extrasById', json_encode(BackendExtensionsModel::getExtras()));
     $this->tpl->assign('prefixURL', rtrim(BackendPagesModel::getFullURL(1), '/'));
     $this->tpl->assign('formErrors', (string) $this->frm->getErrors());
     $this->tpl->assign('showTags', $this->showTags());
     // get default template id
     $defaultTemplateId = $this->get('fork.settings')->get('Pages', 'default_template', 1);
     // assign template
     $this->tpl->assignArray($this->templates[$defaultTemplateId], 'template');
     // parse the form
     $this->frm->parse($this->tpl);
     // parse the tree
     $this->tpl->assign('tree', BackendPagesModel::getTreeHTML());
 }
예제 #16
0
 /**
  * Parse the page
  */
 protected function parse()
 {
     parent::parse();
     $this->tpl->assign('datagrid', $this->datagrid->getNumResults() != 0 ? $this->datagrid->getContent() : false);
     $this->tpl->assign('varcharFound', $this->allowSave);
 }
예제 #17
0
 /**
  * Parses stuff into the template
  */
 protected function parse()
 {
     parent::parse();
     $this->tpl->assign('item', $this->item);
 }