PHP Класс Profile_User, glpi

Наследование: extends CommonDBTM
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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

Открытые методы

Метод Описание
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 )

Описание методов

canCreateItem() публичный Метод

..
public canCreateItem ( )

deleteRights() статический публичный Метод

static public deleteRights ( $user_ID, $only_dynamic = false )
$user_ID
$only_dynamic (false by default)

displayTabContentForItem() статический публичный Метод

static public displayTabContentForItem ( CommonGLPI $item, $tabnum = 1, $withtemplate )
$item CommonGLPI

getEntitiesForProfileByUser() статический публичный Метод

retrieve the entities allowed to a user for a profile
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)
Результат Array of entity ID

getEntitiesForUser() статический публичный Метод

retrieve the entities associated to a user
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)
Результат Array of entity ID

getForUser() статический публичный Метод

Get entities for which a user have a right
static public getForUser ( $user_ID, $only_dynamic = false ) : array
$user_ID user ID
$only_dynamic get only recursive rights (false by default)
Результат array of entities ID

getForbiddenStandardMassiveAction() публичный Метод

См. также: CommonDBTM::getForbiddenStandardMassiveAction()

getRawName() публичный Метод

См. также: CommonDBTM::getRawName()
public getRawName ( )

getRelationInputForProcessingOfMassiveActions() статический публичный Метод

См. также: CommonDBRelation::getRelationInputForProcessingOfMassiveActions()
static public getRelationInputForProcessingOfMassiveActions ( $action, CommonDBTM $item, array $ids, array $input )
$item CommonDBTM
$ids array
$input array

getRelationMassiveActionsSpecificities() статический публичный Метод

См. также: CommonDBRelation::getRelationMassiveActionsSpecificities()

getSearchOptions() публичный Метод

public getSearchOptions ( )

getTabNameForItem() публичный Метод

public getTabNameForItem ( CommonGLPI $item, $withtemplate )
$item CommonGLPI

getTypeName() статический публичный Метод

static public getTypeName ( $nb )

getUserEntities() статический публичный Метод

Get entities for which a user have a right
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)
Результат array of entities ID

getUserEntitiesForRight() статический публичный Метод

Get entities for which a user have a right
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)
Результат array of entities ID

getUserProfiles() статический публичный Метод

Get user profiles (no entity association, use sqlfilter if needed)
static public getUserProfiles ( $user_ID, $sqlfilter = '' ) : array
$user_ID user ID
$sqlfilter string additional filter (must start with AND) (default '')
Результат array of the IDs of the profiles

haveUniqueRight() статический публичный Метод

static public haveUniqueRight ( $user_ID, $profile_id )
$user_ID
$profile_id

maybeRecursive() публичный Метод

public maybeRecursive ( )

prepareInputForAdd() публичный Метод

public prepareInputForAdd ( $input )

showForEntity() статический публичный Метод

Show users of an entity
static public showForEntity ( Entity $entity )
$entity Entity Entity object

showForProfile() статический публичный Метод

Show the User having a profile, in allowed Entity
static public showForProfile ( Profile $prof )
$prof Profile Profile object

showForUser() статический публичный Метод

Show rights of a user
static public showForUser ( User $user )
$user User User object

showRelationMassiveActionsSubForm() статический публичный Метод

См. также: CommonDBRelation::showRelationMassiveActionsSubForm()
static public showRelationMassiveActionsSubForm ( MassiveAction $ma, $peer_number )
$ma MassiveAction

Описание свойств

$auto_message_on_action публичное свойство

From CommonDBTM
public $auto_message_on_action

$checkItem_2_Rights публичное статическое свойство

public static $checkItem_2_Rights

$disableAutoEntityForwarding публичное статическое свойство

Manage Entity properties forwarding
public static $disableAutoEntityForwarding

$items_id_1 публичное статическое свойство

public static $items_id_1

$items_id_2 публичное статическое свойство

public static $items_id_2

$itemtype_1 публичное статическое свойство

From CommonDBRelation
public static $itemtype_1

$itemtype_2 публичное статическое свойство

public static $itemtype_2

$log_history_1_add публичное статическое свойство

public static $log_history_1_add

$log_history_1_delete публичное статическое свойство

public static $log_history_1_delete

$logs_for_item_1 публичное статическое свойство

public static $logs_for_item_1

$logs_for_item_2 публичное статическое свойство

Specific log system
public static $logs_for_item_2