ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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...
 

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. 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  global $rbacsystem;
36 
37  require_once 'Services/Mail/classes/class.ilMail.php';
38  $mail = new ilMail($GLOBALS['DIC']['ilUser']->getId());
39  if($rbacsystem->checkAccess('internal_mail', $mail->getMailObjectReferenceId()))
40  {
41  return true;
42  }
43  return false;
44  }
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
This class handles base functions for mail handling.

◆ _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: