Stud.IP  3.1 Revision 48552
 All Data Structures Namespaces Files Functions Variables Groups Pages
FileHelper Class Reference
Collaboration diagram for FileHelper:
Collaboration graph

Static Public Member Functions

static CompressFilename ($filename)
static AdjustFilename ($filename)
static ExtendFilename ($filename, $extension, $wrap=array('(', ')'))
static getParentId ($entry_id)
static getBreadCrumbs ($entry_id)
static GetDirectoryTree ($folder_id)
static CheckAccess ($files, $user_id=null, $throw_exception=true)

Member Function Documentation

static AdjustFilename (   $filename)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static CheckAccess (   $files,
  $user_id = null,
  $throw_exception = true 
)
static

Checks whether the user may access a file or a bunch of files if you pass an array.

Parameters
mixed$filesEither a single directory entry id or an array of those (DirectoryEntry or File object(s) are also valid)
mixed$user_idId of the user or null for current user (default)
bool$throw_exceptionThrow an AccessDeniedException instead of returning false
Returns
bool indicating whether the user may access this file/these files
Exceptions
AccessDeniedExceptionif $throw_exception is true and the user may not access the file(s)

Here is the call graph for this function:

static CompressFilename (   $filename)
static

Here is the caller graph for this function:

static ExtendFilename (   $filename,
  $extension,
  $wrap = array('(', ')') 
)
static

Here is the caller graph for this function:

static getBreadCrumbs (   $entry_id)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static GetDirectoryTree (   $folder_id)
static
static getParentId (   $entry_id)
static

Here is the caller graph for this function:


The documentation for this class was generated from the following file: