當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Base\ActionEdit類代碼示例

本文整理匯總了PHP中Backend\Core\Engine\Base\ActionEdit的典型用法代碼示例。如果您正苦於以下問題:PHP ActionEdit類的具體用法?PHP ActionEdit怎麽用?PHP ActionEdit使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了ActionEdit類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: execute

 public function execute()
 {
     parent::execute();
     try {
         $id = Uuid::fromString($this->getParameter('id', 'string'));
         $teamMember = $this->get('team_repository')->find($id);
     } catch (\Exception $e) {
         return $this->redirect(Model::createURLForAction('Index') . '&error=non-existing');
     }
     $form = new TeamType('edit', $teamMember);
     if ($form->handle()) {
         $teamMember = $form->getData();
         $this->get('team_repository')->save($teamMember);
         return $this->redirect(Model::createURLForAction('Index') . '&report=edited' . '&highlight=row-' . $teamMember->getId());
     }
     // assign the detail url to the template if available
     $url = Model::getURLForBlock($this->URL->getModule(), 'Detail');
     if (Model::getURL(404) != $url) {
         $this->tpl->assign('detailURL', SITE_URL . $url);
     }
     $form->parse($this->tpl);
     $this->tpl->assign('teamMember', $teamMember->toArray());
     $this->parse();
     $this->display();
 }
開發者ID:WouterSioen,項目名稱:fork-cms-module-team,代碼行數:25,代碼來源:Edit.php

示例2: execute

 /**
  * Execute the action
  */
 public function execute()
 {
     parent::execute();
     $this->loadData();
     $this->parse();
     $this->display();
 }
開發者ID:bwgraves,項目名稱:forkcms,代碼行數:10,代碼來源:ExportThemeTemplates.php

示例3: parse

 /**
  * Parse the form
  */
 protected function parse()
 {
     parent::parse();
     // assign the data
     $this->tpl->assign('item', $this->record);
     $this->tpl->assign('fieldLanguages', $this->fieldLanguages);
 }
開發者ID:Comsa-Veurne,項目名稱:modules,代碼行數:10,代碼來源:EditSpecification.php

示例4: parse

 /**
  * 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'));
 }
開發者ID:bwgraves,項目名稱:forkcms,代碼行數:10,代碼來源:EditCategory.php

示例5: parse

 /**
  * 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'));
 }
開發者ID:bwgraves,項目名稱:forkcms,代碼行數:10,代碼來源:EditCategory.php

示例6: parse

 /**
  * 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);
 }
開發者ID:Comsa-Veurne,項目名稱:modules,代碼行數:10,代碼來源:EditImage.php

示例7: parse

 /**
  * 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);
 }
開發者ID:forkcms,項目名稱:forkcms,代碼行數:10,代碼來源:Settings.php

示例8: parse

 /**
  * 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']);
 }
開發者ID:forkcms,項目名稱:forkcms,代碼行數:10,代碼來源:EditSynonym.php

示例9: parse

 /**
  * 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));
 }
開發者ID:bart-webleads,項目名稱:fork-cms-module-slideshow,代碼行數:13,代碼來源:EditCategory.php

示例10: parse

 /**
  * Parse the form
  */
 protected function parse()
 {
     parent::parse();
     // parse form
     $this->frm->parse($this->tpl);
     // assign iteration
     $this->tpl->assign(array('modules' => $this->modules));
 }
開發者ID:forkcms,項目名稱:forkcms,代碼行數:11,代碼來源:Settings.php

示例11: execute

 /**
  * Execute the action
  */
 public function execute()
 {
     parent::execute();
     $this->loadForm();
     $this->validateForm();
     $this->parse();
     $this->display();
 }
開發者ID:forkcms,項目名稱:forkcms,代碼行數:11,代碼來源:Settings.php

示例12: parse

 /**
  * 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();
 }
開發者ID:newaltcoin,項目名稱:forkcms,代碼行數:12,代碼來源:EditMailingIframe.php

示例13: execute

 /**
  * Execute the action
  */
 public function execute()
 {
     parent::execute();
     set_time_limit(0);
     $this->fs = new Filesystem();
     $this->loadForm();
     $this->validateForm();
     $this->parse();
     $this->display();
 }
開發者ID:arashrasoulzadeh,項目名稱:forkcms,代碼行數:13,代碼來源:ImportWordpress.php

示例14: execute

 /**
  * Execute the action
  */
 public function execute()
 {
     parent::execute();
     $this->groupId = \SpoonFilter::getGetValue('group_id', null, 0, 'int');
     $this->downloadExampleFile();
     $this->loadForm();
     $this->validateForm();
     $this->parse();
     $this->display();
 }
開發者ID:bwgraves,項目名稱:forkcms,代碼行數:13,代碼來源:ImportAddresses.php

示例15: parse

 /**
  * 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);
     }
 }
開發者ID:Comsa-Veurne,項目名稱:modules,代碼行數:13,代碼來源:EditBrand.php


注:本文中的Backend\Core\Engine\Base\ActionEdit類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。