PHP 클래스 Profile_User, glpi

상속: extends CommonDBTM
파일 보기 프로젝트 열기: glpi-project/glpi 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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