本文整理汇总了PHP中Backend\Core\Engine\Base\ActionEdit::parse方法的典型用法代码示例。如果您正苦于以下问题:PHP ActionEdit::parse方法的具体用法?PHP ActionEdit::parse怎么用?PHP ActionEdit::parse使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Backend\Core\Engine\Base\ActionEdit
的用法示例。
在下文中一共展示了ActionEdit::parse方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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']);
}
示例2: 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);
}
示例3: 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'));
}
示例4: 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);
}
示例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();
// assign the data
$this->tpl->assign('item', $this->record);
$this->tpl->assign('fieldLanguages', $this->fieldLanguages);
}
示例7: 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));
}
示例8: 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));
}
示例9: 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();
}
示例10: 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);
}
}
示例11: 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);
}
}
示例12: 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);
}
}
示例13: 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);
}
}
示例14: 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);
}
}
示例15: parse
/**
* 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']);
}