Backend\Modules\Pages\Actions\Index::parse PHP Метод

parse() защищенный Метод

Parse the datagrid and the reports
protected parse ( )
    protected function parse()
    {
        parent::parse();
        // parse dgRecentlyEdited
        $this->tpl->assign('dgRecentlyEdited', $this->dgRecentlyEdited->getNumResults() != 0 ? $this->dgRecentlyEdited->getContent() : false);
        $this->tpl->assign('dgDrafts', $this->dgDrafts->getNumResults() != 0 ? $this->dgDrafts->getContent() : false);
        // parse the tree
        $this->tpl->assign('tree', BackendPagesModel::getTreeHTML());
        // open the tree on a specific page
        if ($this->getParameter('id', 'int') !== null) {
            $this->tpl->assign('openedPageId', $this->getParameter('id', 'int'));
        } else {
            $this->tpl->assign('openedPageId', 1);
        }
    }