phpDocumentor GalleryCore
Helpers
[ class tree: GalleryCore ] [ index: GalleryCore ] [ all elements ]

Class: GalleryPermissionHelper_simple

Source Location: /modules/core/classes/helpers/GalleryPermissionHelper_simple.class

Class GalleryPermissionHelper_simple

Method Summary
void   addPermissionToSession()  
void   convertBitsToIds()  
void   convertIdsToBits()  
void   fetchAccessListIds()  
void   fetchPermissionsForItems()  
void   getPermissions()  
void   studyPermissions()  
void   _clearCachedAccessListIds()   Clear all cached access list ids
void   _fetchAccessListIds()   Like GalleryCoreApi::fetchAccessListIds but only processes a single permission id
array   _fetchAllPermissions()   Return a list of all available permissions

[ Top ]
Methods
addPermissionToSession  [line 491]

  void addPermissionToSession( $entityId  )

Parameters:
   $entityId: 

API Tags:
See:  GalleryCoreApi::addPermissionToSession


[ Top ]
convertBitsToIds  [line 363]

  void convertBitsToIds( $permissionBits, [ $compress = false]  )

Parameters:
   $permissionBits: 
   $compress: 

API Tags:
See:  GalleryCoreApi::convertPermissionBitsToIds


[ Top ]
convertIdsToBits  [line 143]

  void convertIdsToBits( $permissionIds  )

Parameters:
   $permissionIds: 

API Tags:
See:  GalleryCoreApi::convertPermissionIdsToBits


[ Top ]
fetchAccessListIds  [line 40]

  void fetchAccessListIds( $permission, $userId, [ $sessionPermissions = true]  )

Parameters:
   $permission: 
   $userId: 
   $sessionPermissions: 

API Tags:
See:  GalleryCoreApi::fetchAccessListIds


[ Top ]
fetchPermissionsForItems  [line 237]

  void fetchPermissionsForItems( $itemIds, [ $userId = null], [ $sessionPermissions = true]  )

Parameters:
   $itemIds: 
   $userId: 
   $sessionPermissions: 

API Tags:
See:  GalleryCoreApi::fetchPermissionsForItems


[ Top ]
getPermissions  [line 456]

  void getPermissions( $itemId, [ $userId = null], [ $sessionPermissions = true]  )

Parameters:
   $itemId: 
   $userId: 
   $sessionPermissions: 

API Tags:
See:  GalleryCoreApi::getPermissions


[ Top ]
studyPermissions  [line 224]

  void studyPermissions( $itemIds, [ $userId = null], [ $sessionPermissions = true]  )

Parameters:
   $itemIds: 
   $userId: 
   $sessionPermissions: 

API Tags:
See:  GalleryCoreApi::studyPermissions


[ Top ]
_clearCachedAccessListIds  [line 136]

  void _clearCachedAccessListIds( )

Clear all cached access list ids


API Tags:
Access:  private


[ Top ]
_fetchAccessListIds  [line 63]

  void _fetchAccessListIds( $permission, $userId, [ $sessionPermissions = true]  )

Like GalleryCoreApi::fetchAccessListIds but only processes a single permission id

Parameters:
   $permission: 
   $userId: 
   $sessionPermissions: 

API Tags:
Access:  private


[ Top ]
_fetchAllPermissions  [line 179]

  array _fetchAllPermissions( )

Return a list of all available permissions


API Tags:
Return:  GalleryStatus a status code array ('permission' => array('module' => ..., 'permission' => ..., 'description' => ..., 'bits' => ..., 'flags' => ...) ...)
Access:  protected


[ Top ]

Documentation generated on Fri, 08 Oct 2010 05:01:39 -0700 by phpDocumentor 1.3.0RC6