/** * Sets up the necessary information about the form, existing permission entries, * etc. Only runs if not initialized. */ protected function _formSetup() { if ($this->_formsInitialized) { return; } $formModel = $this->_getFormModel(); $this->_forms = $this->_getFormModel()->getForms(); $this->_formPermissionEntries = $this->_permissionModel->getAllContentPermissionEntriesByTypeGrouped('form'); $this->_formsInitialized = true; }
/** * Sets up the necessary information about the node tree, existing permission entries, * etc. Only runs if not initialized. */ protected function _nodeSetup() { if ($this->_nodesInitialized) { return; } $nodeModel = $this->_getNodeModel(); $this->_nodeTypes = $nodeModel->getAllNodeTypes(); $this->_nodeTree = $nodeModel->getNodeHierarchy(); $this->_nodePermissionEntries = $this->_permissionModel->getAllContentPermissionEntriesByTypeGrouped('node'); $this->_nodesInitialized = true; }
/** * Sets up the necessary information about the tree, existing permission entries, * etc. Only runs if not initialized. */ protected function _setup() { if ($this->_initialized) { return; } $categoryModel = $this->_getCategoryModel(); $this->_categories = $categoryModel->getAllCategories(); $this->_categoryTree = $categoryModel->groupCategoriesByParent($this->_categories); $this->_permissionEntries = $this->_permissionModel->getAllContentPermissionEntriesByTypeGrouped('resource_category'); $this->_initialized = true; }