All Data Structures Functions Variables Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes
SecurityTreeListView Class Reference
Inheritance diagram for SecurityTreeListView:
MetadataView View GroupsTreeListView ProductCategoriesTreeListView RolesTreeListView GroupsModalTreeListView ProductCategoriesModalTreeListView RolesModalTreeListView SelectParentGroupModalTreeListView SelectParentCategoryModalTreeListView SelectParentRoleModalTreeListView

Public Member Functions

 __construct ($controllerId, $moduleId, $items)
- Public Member Functions inherited from View
 isUniqueToAPage ()
 render ()
 setCssClasses (array $classes)
 getCssClasses ()
 getTitle ()
 getPostTruncatedTitleContent ()

Static Public Member Functions

static getDefaultMetadata ()

Protected Member Functions

 renderTreeMenu ($nodeRelationName, $nodesRelationName, $title)
 getModelRelationNameForUserCount ()
 renderTreeListView ($data)
 makeChildrenNodes ($items, $parentItem, $nodeRelationName, $isLink=true)
 resolveNodeWithChildrenItems (array $itemNodes, $parentItem)
 makeTreeMenuNodeLink ($label, $action, $id)
 makeTreeMenuNodeRoute ($action, $id)
 resolveIsNodeLinkableById ($id, $name)
 resolveUserCountForItem (Item $item)
 registerScripts ()
- Protected Member Functions inherited from View
 resolveDefaultClasses ()
 renderContainerWrapperId ()
 getContainerWrapperTag ()
 getId ()
 renderContent ()
 getViewStyle ()
 renderTitleContent ()
 resolveCustomViewTemplateFileName ($theme, $view)

Static Protected Member Functions

static renderTreeListViewNode (&$content, $data, $indent)
static shouldRenderConfigureLink ()
static resolveIdFromRoute ($route)
static renderUserCount ($userCount, $route)
static resolveShouldShowLinkableUserCount ()
static resolveRouteAction ()

Protected Attributes

- Protected Attributes inherited from View
 $cssClasses = array()
 $makeDefaultClassesFromClassHeirarchy = true

Detailed Description

View that renders a a security component in the form of a tree or noded list view.

Definition at line 41 of file SecurityTreeListView.php.

Constructor & Destructor Documentation

__construct (   $controllerId,

Definition at line 54 of file SecurityTreeListView.php.

Member Function Documentation

renderTreeMenu (   $nodeRelationName,

Render Tree Menu.

nodeRelationName- parent relation name such as 'role' or 'group'
nodesRelationName- children relation name such as 'roles' or 'groups'
string tree content

Definition at line 70 of file SecurityTreeListView.php.

makeChildrenNodes (   $items,
  $isLink = true 
$isLink- Currently if this gets set to true in this function then this is propogated downstream because makeChildrenNodes is used recursively.
See Also
CTreeView ready nodes array

Definition at line 149 of file SecurityTreeListView.php.

resolveNodeWithChildrenItems ( array  $itemNodes,

Override if you need to add additional items into the tree for each node. An example is roles, that show the list of users for each role.

Definition at line 192 of file SecurityTreeListView.php.

resolveIsNodeLinkableById (   $id,

Override if special logic is needed to control when a node is displayed as a link or not

Definition at line 220 of file SecurityTreeListView.php.

The documentation for this class was generated from the following file:
Generated on Sun May 31 2020 07:11:00