Свойство | Type | Description | |
---|---|---|---|
$auto_message_on_action | From CommonDBTM | ||
$checkItem_2_Rights | |||
$disableAutoEntityForwarding | Manage Entity properties forwarding | ||
$items_id_1 | |||
$items_id_2 | |||
$itemtype_1 | From CommonDBRelation | ||
$itemtype_2 | |||
$log_history_1_add | |||
$log_history_1_delete | |||
$logs_for_item_1 | |||
$logs_for_item_2 | Specific log system |
Méthode | Description | |
---|---|---|
canCreateItem ( ) | TODO CommonDBConnexity : check in details if we can replace canCreateItem by canRelationItem . | |
deleteRights ( $user_ID, $only_dynamic = false ) | ||
displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate ) | ||
getEntitiesForProfileByUser ( $users_id, $profiles_id, $child = false ) : Array | retrieve the entities allowed to a user for a profile | |
getEntitiesForUser ( $users_id, $child = false ) : Array | retrieve the entities associated to a user | |
getForUser ( $user_ID, $only_dynamic = false ) : array | Get entities for which a user have a right | |
getForbiddenStandardMassiveAction ( ) | ||
getRawName ( ) | ||
getRelationInputForProcessingOfMassiveActions ( $action, CommonDBTM $item, array $ids, array $input ) | ||
getRelationMassiveActionsSpecificities ( ) | ||
getSearchOptions ( ) | ||
getTabNameForItem ( CommonGLPI $item, $withtemplate ) | ||
getTypeName ( $nb ) | ||
getUserEntities ( $user_ID, $is_recursive = true, $default_first = false ) : array | Get entities for which a user have a right | |
getUserEntitiesForRight ( $user_ID, $right, $is_recursive = true ) : array | Get entities for which a user have a right | |
getUserProfiles ( $user_ID, $sqlfilter = '' ) : array | Get user profiles (no entity association, use sqlfilter if needed) | |
haveUniqueRight ( $user_ID, $profile_id ) | ||
maybeRecursive ( ) | ||
prepareInputForAdd ( $input ) | ||
showForEntity ( Entity $entity ) | Show users of an entity | |
showForProfile ( Profile $prof ) | Show the User having a profile, in allowed Entity | |
showForUser ( User $user ) | Show rights of a user | |
showRelationMassiveActionsSubForm ( MassiveAction $ma, $peer_number ) |
static public deleteRights ( $user_ID, $only_dynamic = false ) | ||
$user_ID | ||
$only_dynamic | (false by default) |
static public displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate ) | ||
$item | CommonGLPI |
static public getEntitiesForProfileByUser ( $users_id, $profiles_id, $child = false ) : Array | ||
$users_id | Integer ID of the user | |
$profiles_id | Integer ID of the profile | |
$child | Boolean when true, include child entity when recursive right (false by default) | |
Résultat | Array | of entity ID |
static public getEntitiesForUser ( $users_id, $child = false ) : Array | ||
$users_id | Integer ID of the user | |
$child | Boolean when true, include child entity when recursive right (false by default) | |
Résultat | Array | of entity ID |
static public getForUser ( $user_ID, $only_dynamic = false ) : array | ||
$user_ID | user ID | |
$only_dynamic | get only recursive rights (false by default) | |
Résultat | array | of entities ID |
static public getRelationInputForProcessingOfMassiveActions ( $action, CommonDBTM $item, array $ids, array $input ) | ||
$item | CommonDBTM | |
$ids | array | |
$input | array |
static public getRelationMassiveActionsSpecificities ( ) |
public getTabNameForItem ( CommonGLPI $item, $withtemplate ) | ||
$item | CommonGLPI |
static public getUserEntities ( $user_ID, $is_recursive = true, $default_first = false ) : array | ||
$user_ID | user ID | |
$is_recursive | check also using recursive rights (true by default) | |
$default_first | user default entity first (false by default) | |
Résultat | array | of entities ID |
static public getUserEntitiesForRight ( $user_ID, $right, $is_recursive = true ) : array | ||
$user_ID | integer user ID | |
$right | right to check | |
$is_recursive | check also using recursive rights (true by default) | |
Résultat | array | of entities ID |
static public getUserProfiles ( $user_ID, $sqlfilter = '' ) : array | ||
$user_ID | user ID | |
$sqlfilter | string additional filter (must start with AND) (default '') | |
Résultat | array | of the IDs of the profiles |
static public haveUniqueRight ( $user_ID, $profile_id ) | ||
$user_ID | ||
$profile_id |
static public showForEntity ( Entity $entity ) | ||
$entity | Entity | Entity object |
static public showForProfile ( Profile $prof ) | ||
$prof | Profile | Profile object |
static public showForUser ( User $user ) | ||
$user | User | User object |
static public showRelationMassiveActionsSubForm ( MassiveAction $ma, $peer_number ) | ||
$ma | MassiveAction |
public static $disableAutoEntityForwarding |