ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilObjMailAccess Class Reference

Class ilObjMailAccess. More...

+ Inheritance diagram for ilObjMailAccess:
+ Collaboration diagram for ilObjMailAccess:

Public Member Functions

 _lookupDiskUsageOfUser ($user_id)
 Returns the number of attachments and the number of bytes used on the harddisk for mail attachments, by the user with the specified user id. More...
 
- Public Member Functions inherited from ilObjectAccess
 _checkAccess ($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id="")
 Checks wether a user may invoke a command or not (this method is called by ilAccessHandler::checkAccess) More...
 
 _checkCondition ($a_obj_id, $a_operator, $a_value, $a_usr_id)
 check condition More...
 
 canBeDelivered (ilWACPath $ilWACPath)
 
Parameters
ilWACPath$ilWACPath
Returns
bool
More...
 

Static Public Member Functions

static _checkGoto ($a_target)
 check whether goto script will succeed More...
 
- Static Public Member Functions inherited from ilObjectAccess
static _getCommands ()
 get commands More...
 
static _checkGoto ($a_target)
 check whether goto script will succeed More...
 
static _isOffline ($a_obj_id)
 Type-specific implementation of general status, has to be overwritten if object type does not support centralized offline handling. More...
 
static _preloadData ($a_obj_ids, $a_ref_ids)
 Preload data. More...
 

Detailed Description

Class ilObjMailAccess.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 14 of file class.ilObjMailAccess.php.

Member Function Documentation

◆ _checkGoto()

static ilObjMailAccess::_checkGoto (   $a_target)
static

check whether goto script will succeed

Definition at line 33 of file class.ilObjMailAccess.php.

References $GLOBALS.

34  {
35  require_once 'Services/Mail/classes/class.ilMail.php';
36  $mail = new ilMail($GLOBALS['DIC']['ilUser']->getId());
37  if ($GLOBALS['DIC']['rbacsystem']->checkAccess('internal_mail', $mail->getMailObjectReferenceId())) {
38  return true;
39  }
40  return false;
41  }
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.

◆ _lookupDiskUsageOfUser()

ilObjMailAccess::_lookupDiskUsageOfUser (   $user_id)

Returns the number of attachments and the number of bytes used on the harddisk for mail attachments, by the user with the specified user id.

Parameters
intuser id.
Returns
array('count'=>integer,'size'=>integer),...) // an associative array with the disk // usage in bytes for each object type

Definition at line 24 of file class.ilObjMailAccess.php.

References ilFileDataMail\_lookupDiskUsageOfUser().

25  {
26  require_once "./Services/Mail/classes/class.ilFileDataMail.php";
28  }
static _lookupDiskUsageOfUser($user_id)
Returns the number of bytes used on the harddisk for mail attachments, by the user with the specified...
+ Here is the call graph for this function:

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