ILIAS  eassessment Revision 61809
 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

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 25692 2010-09-15 09:44:16Z mwarkus

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

Member Function Documentation

ilObjMailAccess::_checkGoto (   $a_target)

check whether goto script will succeed

Reimplemented from ilObjectAccess.

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

References $_SESSION.

{
global $rbacsystem;
$mail = new ilMail($_SESSION["AccountId"]);
if($rbacsystem->checkAccess('mail_visible', $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 44 of file class.ilObjMailAccess.php.

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

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