示例#1
0
 /**
  * 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;
 }
示例#2
0
 /**
  * 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;
 }
示例#3
0
 /**
  * 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;
 }