parse() protected method

Parse the form
protected parse ( )
コード例 #1
0
ファイル: EditSynonym.php プロジェクト: forkcms/forkcms
 /**
  * Parse the form
  */
 protected function parse()
 {
     parent::parse();
     // assign id, term
     $this->tpl->assign('id', $this->record['id']);
     $this->tpl->assign('term', $this->record['term']);
 }
コード例 #2
0
ファイル: EditImage.php プロジェクト: Comsa-Veurne/modules
 /**
  * Parse the form
  */
 protected function parse()
 {
     parent::parse();
     $this->tpl->assign('product', $this->product);
     $this->tpl->assign('id', $this->id);
     $this->tpl->assign('item', $this->image);
 }
コード例 #3
0
ファイル: EditCategory.php プロジェクト: bwgraves/forkcms
 /**
  * Parse the form
  */
 protected function parse()
 {
     parent::parse();
     $this->tpl->assign('item', $this->record);
     // delete allowed?
     $this->tpl->assign('showBlogDeleteCategory', BackendBlogModel::deleteCategoryAllowed($this->id) && BackendModel::createURLForAction('DeleteCategory'));
 }
コード例 #4
0
ファイル: Settings.php プロジェクト: forkcms/forkcms
 /**
  * Parse the form
  */
 protected function parse()
 {
     parent::parse();
     // parse additional variables
     $this->tpl->assign('commentsRSSURL', SITE_URL . BackendModel::getURLForBlock($this->URL->getModule(), 'comments_rss'));
     $this->tpl->assign('isGod', $this->isGod);
 }
コード例 #5
0
ファイル: EditCategory.php プロジェクト: bwgraves/forkcms
 /**
  * Parse the form
  */
 protected function parse()
 {
     parent::parse();
     // assign the data
     $this->tpl->assign('item', $this->record);
     $this->tpl->assign('showFaqDeleteCategory', BackendFaqModel::deleteCategoryAllowed($this->id) && BackendAuthentication::isAllowedAction('DeleteCategory'));
 }
コード例 #6
0
 /**
  * Parse the form
  */
 protected function parse()
 {
     parent::parse();
     // assign the data
     $this->tpl->assign('item', $this->record);
     $this->tpl->assign('fieldLanguages', $this->fieldLanguages);
 }
コード例 #7
0
 /**
  * Parse the form
  *
  * @return  void
  */
 protected function parse()
 {
     parent::parse();
     $this->tpl->assign('id', $this->record['id']);
     $this->tpl->assign('title', $this->record['title']);
     // delete allowed?
     $this->tpl->assign('showSlideshowDeleteCategory', BackendSlideshowModel::deleteCategoryAllowed($this->id));
 }
コード例 #8
0
ファイル: Settings.php プロジェクト: forkcms/forkcms
 /**
  * Parse the form
  */
 protected function parse()
 {
     parent::parse();
     // parse form
     $this->frm->parse($this->tpl);
     // assign iteration
     $this->tpl->assign(array('modules' => $this->modules));
 }
コード例 #9
0
 /**
  * Parse the form
  */
 protected function parse()
 {
     parent::parse();
     // assign the active record and additional variables
     $this->tpl->assign('mailing', $this->record);
     $this->tpl->assign('template', $this->template);
     // parse template content
     $this->parseTemplateContent();
 }
コード例 #10
0
ファイル: EditBrand.php プロジェクト: Comsa-Veurne/modules
 /**
  * Parse the form
  */
 protected function parse()
 {
     parent::parse();
     // assign the data
     $this->tpl->assign('item', $this->record);
     // is brand allowed to be deleted?
     if (BackendCatalogModel::isBrandAllowedToBeDeleted($this->id)) {
         $this->tpl->assign('showDelete', true);
     }
 }
コード例 #11
0
 /**
  * Parse the form
  *
  * @return void
  */
 protected function parse()
 {
     // call parent
     parent::parse();
     // assign the category
     $this->tpl->assign('category', $this->record);
     // can the category be deleted?
     if (BackendGalleriaModel::deleteCategoryAllowed($this->id)) {
         $this->tpl->assign('showDelete', true);
     }
 }
コード例 #12
0
ファイル: Edit.php プロジェクト: Comsa-Veurne/modules
 /**
  * Parse the page
  */
 protected function parse()
 {
     parent::parse();
     $this->tpl->assign('item', $this->record);
     $this->tpl->assign('iframe', BackendModel::createURLForAction('preview') . "&id=" . $this->id);
     // get url
     $url = BackendModel::getURLForBlock($this->URL->getModule(), 'detail');
     $url404 = BackendModel::getURL(404);
     if ($url404 != $url) {
         $this->tpl->assign('detailURL', SITE_URL . $url);
     }
 }
コード例 #13
0
ファイル: EditGroup.php プロジェクト: Comsa-Veurne/modules
 /**
  * Parse the page
  */
 protected function parse()
 {
     parent::parse();
     $this->header->addJS('edit.js');
     $this->tpl->assign('item', $this->record);
     // get url
     $url = BackendModel::getURLForBlock($this->URL->getModule(), 'Group');
     $url404 = BackendModel::getURL(404);
     if ($url404 != $url) {
         $this->tpl->assign('detailURL', SITE_URL . $url);
     }
 }
コード例 #14
0
ファイル: EditCategory.php プロジェクト: forkcms/forkcms
 /**
  * Parse the form
  */
 protected function parse()
 {
     parent::parse();
     // assign the data
     $this->tpl->assign('item', $this->record);
     $this->tpl->assign('showFaqDeleteCategory', BackendFaqModel::deleteCategoryAllowed($this->id) && BackendAuthentication::isAllowedAction('DeleteCategory'));
     $url = BackendModel::getURLForBlock($this->URL->getModule(), 'Category');
     $url404 = BackendModel::getURL(404);
     if ($url404 != $url) {
         $this->tpl->assign('detailURL', SITE_URL . $url);
     }
 }
コード例 #15
0
ファイル: Edit.php プロジェクト: newaltcoin/forkcms
 /**
  * Parse the form
  */
 protected function parse()
 {
     parent::parse();
     // prevent XSS
     $filter = \SpoonFilter::arrayMapRecursive('htmlspecialchars', $this->filter);
     // parse filter
     $this->tpl->assign($filter);
     $this->tpl->assign('filterQuery', $this->filterQuery);
     // assign id, name
     $this->tpl->assign('name', $this->record['name']);
     $this->tpl->assign('id', $this->record['id']);
 }
コード例 #16
0
 /**
  * Parse the page
  */
 protected function parse()
 {
     parent::parse();
     // Get url
     $url = Model::getURLForBlock($this->URL->getModule(), 'Detail');
     $url404 = Model::getURL(404);
     // Parse additional variables
     if ($url404 != $url) {
         $this->tpl->assign('detailURL', SITE_URL . $url);
     }
     $this->tpl->assign('item', $this->record);
 }
コード例 #17
0
ファイル: Edit.php プロジェクト: bwgraves/forkcms
 /**
  * Parse the form
  */
 protected function parse()
 {
     parent::parse();
     // get url
     $url = BackendModel::getURLForBlock($this->URL->getModule(), 'detail');
     $url404 = BackendModel::getURL(404);
     if ($url404 != $url) {
         $this->tpl->assign('detailURL', SITE_URL . $url);
     }
     // assign the active record and additional variables
     $this->tpl->assign('item', $this->record);
     $this->tpl->assign('feedback', $this->feedback);
 }
コード例 #18
0
ファイル: Edit.php プロジェクト: Comsa-Veurne/modules
 /**
  * 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();
     $this->tpl->assign('item', $this->record);
     $this->tpl->assign('mediaItems', $this->media->getMediaItems());
 }
コード例 #19
0
 /**
  * Parse the form
  *
  * @return void
  */
 protected function parse()
 {
     //--Add javascript file
     $this->header->addJS('Jquery.uploadify.min.js', null, false);
     $this->header->addJS('Edit.js', null, false);
     $this->header->addCSS('Uploadify.css');
     // call parent
     parent::parse();
     // assign the category
     $this->tpl->assign('album', $this->record);
     $this->tpl->assign('images', $this->images);
     if ($this->frmAddImage) {
         $this->frmAddImage->parse($this->tpl);
     }
     if ($this->frmDeleteImage) {
         $this->frmDeleteImage->parse($this->tpl);
     }
     //--Add data to Javascript
     $this->header->addJsData("Galleria", "id", $this->id);
     // can the category be deleted?
     if (BackendGalleriaModel::deleteAlbumAllowed($this->id)) {
         $this->tpl->assign('showDelete', true);
     }
     // get url
     $url = BackendModel::getURLForBlock($this->URL->getModule(), 'group');
     $url404 = BackendModel::getURL(404);
     if ($url404 != $url) {
         $this->tpl->assign('detailURL', SITE_URL . $url);
     }
 }
コード例 #20
0
ファイル: Edit.php プロジェクト: newaltcoin/forkcms
 /**
  * Parse the form
  */
 protected function parse()
 {
     parent::parse();
     $this->tpl->assign('dataGridUsers', $this->dataGridUsers->getNumResults() != 0 ? $this->dataGridUsers->getContent() : false);
     $this->tpl->assign('item', $this->record);
     $this->tpl->assign('groupName', $this->record['name']);
     // only allow deletion of empty groups
     $this->tpl->assign('showGroupsDelete', $this->dataGridUsers->getNumResults() == 0 && BackendAuthentication::isAllowedAction('Delete'));
 }
コード例 #21
0
ファイル: Edit.php プロジェクト: forkcms/forkcms
 /**
  * Parse the content block and the revisions
  */
 protected function parse()
 {
     parent::parse();
     $this->tpl->assign('id', $this->contentBlock->getId());
     $this->tpl->assign('title', $this->contentBlock->getTitle());
     $this->tpl->assign('revision_id', $this->contentBlock->getRevisionId());
     $this->parseRevisionsDataGrid();
 }
コード例 #22
0
ファイル: Edit.php プロジェクト: bwgraves/forkcms
 /**
  * Parse the form
  */
 protected function parse()
 {
     parent::parse();
     // assign id, name
     $this->tpl->assign('id', $this->id);
     $this->tpl->assign('name', $this->record['name']);
     // assign usage-datagrid
     $this->tpl->assign('usage', (string) $this->dgUsage->getContent());
 }
コード例 #23
0
ファイル: Edit.php プロジェクト: bwgraves/forkcms
 /**
  * Parse the form
  */
 protected function parse()
 {
     $this->parseFields();
     parent::parse();
     $this->tpl->assign('id', $this->record['id']);
     $this->tpl->assign('name', $this->record['name']);
     // parse error messages
     $this->parseErrorMessages();
 }
コード例 #24
0
ファイル: Edit.php プロジェクト: newaltcoin/forkcms
 /**
  * Parse the form
  */
 protected function parse()
 {
     parent::parse();
     // reset avatar URL
     if ($this->record['settings']['avatar'] != '') {
         $this->record['settings']['avatar'] .= '?time=' . time();
     }
     // only allow deletion of other users
     $this->tpl->assign('showUsersDelete', $this->authenticatedUser->getUserId() != $this->id && BackendAuthentication::isAllowedAction('Delete'));
     // assign
     $this->tpl->assign('record', $this->record);
     $this->tpl->assign('id', $this->id);
     // assign that we're god or the same user
     $this->tpl->assign('allowPasswordEdit', $this->authenticatedUser->getUserId() == $this->id || $this->authenticatedUser->isGod());
     // assign that you can edit the user rights
     $this->tpl->assign('allowUserRights', $this->allowUserRights);
     // check if we need to show the password strength and parse the label
     $this->tpl->assign('showPasswordStrength', $this->record['settings']['password_strength'] !== 'strong');
     $this->tpl->assign('passwordStrengthLabel', BL::lbl($this->record['settings']['password_strength']));
 }
コード例 #25
0
ファイル: Edit.php プロジェクト: forkcms/forkcms
 /**
  * Parse the form
  */
 protected function parse()
 {
     parent::parse();
     // assign to template
     $this->tpl->assign('item', $this->record);
     $this->tpl->assign('settings', $this->settings);
     $this->tpl->assign('godUser', BackendAuthentication::getUser()->isGod());
     $this->settingsForm->parse($this->tpl);
     // assign message if address was not be geocoded
     if ($this->record['lat'] == null || $this->record['lng'] == null) {
         $this->tpl->assign('errorMessage', BL::err('AddressCouldNotBeGeocoded'));
     }
 }
コード例 #26
0
ファイル: Edit.php プロジェクト: bwgraves/forkcms
 /**
  * Parse the form
  */
 protected function parse()
 {
     parent::parse();
     // assign the active record and additional variables
     $this->tpl->assign('profile', $this->profile);
     // parse data grids
     $this->tpl->assign('dgGroups', $this->dgGroups->getNumResults() != 0 ? $this->dgGroups->getContent() : false);
     // show delete or undelete button?
     if ($this->profile['status'] === 'deleted') {
         $this->tpl->assign('deleted', true);
     }
     // show block or unblock button?
     if ($this->profile['status'] === 'blocked') {
         $this->tpl->assign('blocked', true);
     }
 }
コード例 #27
0
ファイル: Settings.php プロジェクト: forkcms/forkcms
 /**
  * Parse the data
  */
 protected function parse()
 {
     parent::parse();
     $this->tpl->assign('godUser', BackendAuthentication::getUser()->isGod());
 }
コード例 #28
0
ファイル: EditUser.php プロジェクト: Comsa-Veurne/modules
 /**
  * Parse the page
  */
 protected function parse()
 {
     parent::parse();
     $this->tpl->assign('item', $this->record);
 }
コード例 #29
0
ファイル: EditAddress.php プロジェクト: bwgraves/forkcms
 /**
  * Parse the form
  */
 protected function parse()
 {
     parent::parse();
     // assign the active record and additional variables
     $this->tpl->assign('address', $this->record);
     // assign the group record
     $this->tpl->assign('group', $this->group);
 }
コード例 #30
0
ファイル: Edit.php プロジェクト: biggtfish/forkcms
 /**
  * Parse
  */
 protected function parse()
 {
     parent::parse();
     // set
     $this->record['url'] = $this->meta->getURL();
     if ($this->id == 1) {
         $this->record['url'] = '';
     }
     // parse some variables
     $this->tpl->assign('item', $this->record);
     $this->tpl->assign('isGod', $this->isGod);
     $this->tpl->assign('templates', $this->templates);
     $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($this->record['parent_id']), '/'));
     $this->tpl->assign('formErrors', (string) $this->frm->getErrors());
     // init var
     $showDelete = true;
     // has children?
     if (BackendPagesModel::getFirstChildId($this->record['id']) !== false) {
         $showDelete = false;
     }
     if (!$this->record['delete_allowed']) {
         $showDelete = false;
     }
     // allowed?
     if (!BackendAuthentication::isAllowedAction('Delete', $this->getModule())) {
         $showDelete = false;
     }
     // show delete button
     $this->tpl->assign('showPagesDelete', $showDelete);
     // assign template
     $this->tpl->assignArray($this->templates[$this->record['template_id']], 'template');
     // parse datagrids
     $this->tpl->assign('revisions', $this->dgRevisions->getNumResults() != 0 ? $this->dgRevisions->getContent() : false);
     $this->tpl->assign('drafts', $this->dgDrafts->getNumResults() != 0 ? $this->dgDrafts->getContent() : false);
     // parse the tree
     $this->tpl->assign('tree', BackendPagesModel::getTreeHTML());
 }