ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilMailRoleAddressType Class Reference

Class ilMailRoleAddressType. More...

+ Inheritance diagram for ilMailRoleAddressType:
+ Collaboration diagram for ilMailRoleAddressType:

Static Protected Member Functions

static getRoleIdsByAddress (ilMailAddress $a_address)
 

Static Protected Attributes

static $role_ids_by_address = array()
 
static $may_send_to_global_roles = array()
 

Additional Inherited Members

- Public Member Functions inherited from ilBaseMailAddressType
 __construct (ilMailAddress $a_address)
 ilBaseMailAddressType constructor. More...
 
 validate ($a_sender_id)
 {
Parameters
$a_sender_idinteger
Returns
bool
} More...
 
 getErrors ()
 
- Public Member Functions inherited from ilMailAddressType
 resolve ()
 Returns an array of resolved user ids. More...
 
- Protected Member Functions inherited from ilBaseMailAddressType
 init ()
 
 isValid ($a_sender_id)
 
- Protected Attributes inherited from ilBaseMailAddressType
 $address
 
 $errors = array()
 

Detailed Description

Member Function Documentation

◆ getRoleIdsByAddress()

static ilMailRoleAddressType::getRoleIdsByAddress ( ilMailAddress  $a_address)
staticprotected
Parameters
ilMailAddress$a_address
Returns
array

Definition at line 28 of file class.ilMailRoleAddressType.php.

References ilBaseMailAddressType\$address, $ilDB, $lng, $parser, $query, $res, $row, array, ilMailAddress\getHost(), ilLoggerFactory\getLogger(), ilMailAddress\getMailbox(), ilMailGlobalServices\getMailObjectRefId(), ilMailRfc822AddressParserFactory\getParser(), ilMail\ILIAS_HOST, ilBaseMailAddressType\isValid(), and ilMailAddressType\resolve().

29  {
30  $address = $a_address->getMailbox() . '@' . $a_address->getHost();
31 
32  if(!isset(self::$role_ids_by_address[$address]))
33  {
34  self::$role_ids_by_address[$address] = self::searchRolesByMailboxAddressList($address);
35  }
36 
37  return self::$role_ids_by_address[$address];
38  }
+ Here is the call graph for this function:

Field Documentation

◆ $may_send_to_global_roles

ilMailRoleAddressType::$may_send_to_global_roles = array()
staticprotected

Definition at line 22 of file class.ilMailRoleAddressType.php.

◆ $role_ids_by_address

ilMailRoleAddressType::$role_ids_by_address = array()
staticprotected

Definition at line 17 of file class.ilMailRoleAddressType.php.


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