Stud.IP  jlu_3.3 Revision
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

◆ AdjustFilename()

static AdjustFilename (   $filename)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CheckAccess()

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:

◆ CompressFilename()

static CompressFilename (   $filename)
static
Here is the caller graph for this function:

◆ ExtendFilename()

static ExtendFilename (   $filename,
  $extension,
  $wrap = array('(', ')') 
)
static
Here is the caller graph for this function:

◆ getBreadCrumbs()

static getBreadCrumbs (   $entry_id)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetDirectoryTree()

static GetDirectoryTree (   $folder_id)
static

◆ getParentId()

static getParentId (   $entry_id)
static
Here is the caller graph for this function:

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