本文整理汇总了PHP中ListPage::addAssignForGrid方法的典型用法代码示例。如果您正苦于以下问题:PHP ListPage::addAssignForGrid方法的具体用法?PHP ListPage::addAssignForGrid怎么用?PHP ListPage::addAssignForGrid使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ListPage
的用法示例。
在下文中一共展示了ListPage::addAssignForGrid方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: addAssignForGrid
/**
* Simple assign for grid block
*/
function addAssignForGrid()
{
parent::addAssignForGrid();
//edit permissions
$editPermis = $this->permis[$this->tName]['edit'];
//add permissions
$addPermis = $this->permis[$this->tName]['add'];
//search permissions
$searchPermis = $this->permis[$this->tName]['search'];
//checkbox column
$this->checkboxColumnAttrs();
//edit column
$this->xt->assign("edit_column", $editPermis);
$this->xt->assign("edit_headercolumn", $editPermis);
$this->xt->assign("edit_footercolumn", $editPermis);
//inline edit column
$this->xt->assign("inlineedit_column", $editPermis);
$this->xt->assign("inlineedit_headercolumn", $editPermis);
$this->xt->assign("inlineedit_footercolumn", $editPermis);
//copy link
$this->xt->assign("copy_column", $addPermis);
//view column
$this->xt->assign("view_column", $searchPermis);
//for list icons instead of list links
$this->assignListIconsColumn($editPermis, $addPermis, $searchPermis);
for ($i = 0; $i < count($this->allDetailsTablesArr); $i++) {
$permis = $this->permis[$this->allDetailsTablesArr[$i]['dDataSourceTable']]['add'] || $this->permis[$this->allDetailsTablesArr[$i]['dDataSourceTable']]['search'];
if ($permis) {
$this->xt->assign(GoodFieldName($this->tName) . "_dtable_column", $permis);
break;
}
}
//delete link and attr
$this->deleteSelectedLink();
}