Public Member Functions | |
__construct ($userId=null, CAuthItem $parent=null) | |
getNameText () | |
getNameLink () | |
getGridNameLink () | |
childCount () | |
sortableId () | |
getTypeText () | |
getDeleteOperationLink () | |
getDeleteTaskLink () | |
getDeleteRoleLink () | |
getRemoveParentLink () | |
getRemoveChildLink () | |
getRevokeAssignmentLink () | |
getRevokePermissionLink (CAuthItem $role) | |
getAssignPermissionLink (CAuthItem $role) | |
getInheritedPermissionText ($parents, $displayType=false) |
Public Attributes | |
$userId | |
$parent | |
$childCount |
Rights authorization item behavior class file.
Definition at line 9 of file RAuthItemBehavior.php.
RAuthItemBehavior::__construct | ( | $userId = null , |
|
CAuthItem | $parent = null |
||
) |
Constructs the behavior.
integer | $userId | the id of the user to whom this item is assigned |
\CAuthItem | $parent | the parent item. |
Definition at line 32 of file RAuthItemBehavior.php.
RAuthItemBehavior::childCount | ( | ) |
Returns the markup for the child count.
Definition at line 84 of file RAuthItemBehavior.php.
Referenced by getGridNameLink().
RAuthItemBehavior::getAssignPermissionLink | ( | CAuthItem | $role | ) |
Returns the markup for the assign permission link.
CAuthItem | $role | the role the permission is for. |
Definition at line 255 of file RAuthItemBehavior.php.
References Rights\getDataCsrf(), and Rights\t().
RAuthItemBehavior::getDeleteOperationLink | ( | ) |
Returns the markup for the delete operation link.
Definition at line 118 of file RAuthItemBehavior.php.
References Rights\t().
RAuthItemBehavior::getDeleteRoleLink | ( | ) |
Returns the markup for the delete role link.
Definition at line 150 of file RAuthItemBehavior.php.
References Rights\module(), and Rights\t().
RAuthItemBehavior::getDeleteTaskLink | ( | ) |
Returns the markup for the delete task link.
Definition at line 135 of file RAuthItemBehavior.php.
References Rights\t().
RAuthItemBehavior::getGridNameLink | ( | ) |
Returns the markup for the name link to displayed in the grid.
Definition at line 69 of file RAuthItemBehavior.php.
References childCount(), and sortableId().
RAuthItemBehavior::getInheritedPermissionText | ( | $parents, | |
$displayType = false |
|||
) |
Returns the markup for a inherited permission.
array | $parents | the parents for this item. |
boolean | $displayType | whether to display the parent item type. |
Definition at line 287 of file RAuthItemBehavior.php.
References Rights\t().
RAuthItemBehavior::getNameLink | ( | ) |
Returns the link to update the item.
Definition at line 53 of file RAuthItemBehavior.php.
References getNameText().
RAuthItemBehavior::getNameText | ( | ) |
Returns the item name.
Definition at line 43 of file RAuthItemBehavior.php.
References Rights\module().
Referenced by getNameLink().
RAuthItemBehavior::getRemoveChildLink | ( | ) |
Returns the markup for the remove child link.
Definition at line 188 of file RAuthItemBehavior.php.
References Rights\t().
RAuthItemBehavior::getRemoveParentLink | ( | ) |
Returns the markup for the remove parent link.
Definition at line 171 of file RAuthItemBehavior.php.
References Rights\t().
RAuthItemBehavior::getRevokeAssignmentLink | ( | ) |
Returns the markup for the revoke assignment link.
Definition at line 205 of file RAuthItemBehavior.php.
References Rights\t().
RAuthItemBehavior::getRevokePermissionLink | ( | CAuthItem | $role | ) |
Returns the markup for the revoke permission link.
CAuthItem | $role | the role the permission is for. |
Definition at line 224 of file RAuthItemBehavior.php.
References Rights\getDataCsrf(), and Rights\t().
RAuthItemBehavior::getTypeText | ( | ) |
Returns the markup for the item type.
Definition at line 108 of file RAuthItemBehavior.php.
References Rights\getAuthItemTypeName().
RAuthItemBehavior::sortableId | ( | ) |
Returns the markup for the id required by jui sortable.
Definition at line 98 of file RAuthItemBehavior.php.
Referenced by getGridNameLink().