• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP Base\ActionEdit类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中Backend\Core\Engine\Base\ActionEdit的典型用法代码示例。如果您正苦于以下问题:PHP ActionEdit类的具体用法?PHP ActionEdit怎么用?PHP ActionEdit使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了ActionEdit类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: parse

 /**
  * 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);
     }
 }
开发者ID:Brandberries,项目名称:forkcms-galleria,代码行数:16,代码来源:EditCategory.php


示例17: parse

 /**
  * 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);
     }
 }
开发者ID:Comsa-Veurne,项目名称:modules,代码行数:15,代码来源:Edit.php


示例18: 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'));
     $url = BackendModel::getURLForBlock($this->URL->getModule(), 'Category');
     $url404 = BackendModel::getURL(404);
     if ($url404 != $url) {
         $this->tpl->assign('detailURL', SITE_URL . $url);
     }
 }
开发者ID:forkcms,项目名称:forkcms,代码行数:15,代码来源:EditCategory.php


示例19: parse

 /**
  * 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);
     }
 }
开发者ID:Comsa-Veurne,项目名称:modules,代码行数:15,代码来源:EditGroup.php


示例20: parse

 /**
  * 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);
 }
开发者ID:jeroendesloovere,项目名称:fork-cms-module-instagram,代码行数:15,代码来源:Edit.php



注:本文中的Backend\Core\Engine\Base\ActionEdit类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP Base\ActionIndex类代码示例发布时间:2022-05-23
下一篇:
PHP Engine\Model类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap