本文整理汇总了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();
}
示例2: execute
/**
* Execute the action
*/
public function execute()
{
parent::execute();
$this->loadData();
$this->parse();
$this->display();
}
示例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);
}
示例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'));
}
示例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'));
}
示例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);
}
示例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);
}
示例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']);
}
示例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));
}
示例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));
}
示例11: execute
/**
* Execute the action
*/
public function execute()
{
parent::execute();
$this->loadForm();
$this->validateForm();
$this->parse();
$this->display();
}
示例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();
}
示例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();
}
示例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();
}
示例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);
}
}