ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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.
 _checkGoto ($a_target)
 check whether goto script will succeed
- 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)
 _checkCondition ($a_obj_id, $a_operator, $a_value, $a_usr_id=0)
 check condition
 _getCommands ()
 get commands
 _preloadData ($a_obj_ids, $a_ref_ids)
 Preload data.

Additional Inherited Members

- Static Public Member Functions inherited from ilObjectAccess
static _isOffline ($a_obj_id)
 Type-specific implementation of general status, has to be overwritten.

Detailed Description

Class ilObjMailAccess.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
Id:
class.ilObjMailAccess.php 35958 2012-08-03 09:53:59Z mjansen

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

Member Function Documentation

ilObjMailAccess::_checkGoto (   $a_target)

check whether goto script will succeed

Reimplemented from ilObjectAccess.

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

References $_SESSION.

{
global $rbacsystem;
require_once 'Services/Mail/classes/class.ilMail.php';
$mail = new ilMail($_SESSION["AccountId"]);
if($rbacsystem->checkAccess('internal_mail', $mail->getMailObjectReferenceId()))
{
return true;
}
return false;
}
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.

{
require_once "./Services/Mail/classes/class.ilFileDataMail.php";
}

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