ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilMailAddressTypeHelperImpl Class Reference

Class ilMailAddressTypeHelper. More...

+ Inheritance diagram for ilMailAddressTypeHelperImpl:
+ Collaboration diagram for ilMailAddressTypeHelperImpl:

Public Member Functions

 __construct (string $installationHost)
 ilMailAddressTypeHelperImpl constructor. More...
 
 doesGroupNameExists (string $name)
 
Parameters
string$name
Returns
bool
More...
 
 getGroupObjIdByTitle (string $title)
 
Parameters
string$title
Returns
int
More...
 
 getInstanceByRefId (int $refId)
 
Parameters
int$refId
Returns
ilObject
More...
 
 getAllRefIdsForObjId (int $objId)
 
Parameters
int$objId
Returns
int[]
More...
 
 getUserIdByLogin (string $login)
 
Parameters
string$login
Returns
int
More...
 
 getInstallationHost ()
 
Returns
string
More...
 
 getGlobalMailSystemId ()
 
Returns
int
More...
 
 receivesInternalMailsOnly (int $usrId)
 
 doesGroupNameExists (string $name)
 
 getGroupObjIdByTitle (string $title)
 
 getInstanceByRefId (int $refId)
 
 getAllRefIdsForObjId (int $objId)
 
 getUserIdByLogin (string $login)
 
 getInstallationHost ()
 
 getGlobalMailSystemId ()
 
 receivesInternalMailsOnly (int $usrId)
 

Protected Attributes

 $installationHost = ''
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilMailAddressTypeHelperImpl::__construct ( string  $installationHost)

ilMailAddressTypeHelperImpl constructor.

Parameters
string$installationHost

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

18 {
19 $this->installationHost = $installationHost;
20 }

References $installationHost.

Member Function Documentation

◆ doesGroupNameExists()

ilMailAddressTypeHelperImpl::doesGroupNameExists ( string  $name)

Parameters
string$name
Returns
bool

Implements ilMailAddressTypeHelper.

Definition at line 25 of file class.ilMailAddressTypeHelper.php.

25 : bool
26 {
28 }
static groupNameExists($a_group_name, $a_id=0)
checks if group name already exists.
if($format !==null) $name
Definition: metadata.php:230

References $name, and ilUtil\groupNameExists().

+ Here is the call graph for this function:

◆ getAllRefIdsForObjId()

ilMailAddressTypeHelperImpl::getAllRefIdsForObjId ( int  $objId)

Parameters
int$objId
Returns
int[]

Implements ilMailAddressTypeHelper.

Definition at line 49 of file class.ilMailAddressTypeHelper.php.

49 : array
50 {
51 return array_map('intval', ilObject::_getAllReferences($objId));
52 }
static _getAllReferences($a_id)
get all reference ids of object
$objId
Definition: xapitoken.php:41

References $objId, and ilObject\_getAllReferences().

+ Here is the call graph for this function:

◆ getGlobalMailSystemId()

ilMailAddressTypeHelperImpl::getGlobalMailSystemId ( )

Returns
int

Implements ilMailAddressTypeHelper.

Definition at line 73 of file class.ilMailAddressTypeHelper.php.

73 : int
74 {
76 }
static getMailObjectRefId()
Determines the reference id of the mail object and stores this information in a local cache variable.

References ilMailGlobalServices\getMailObjectRefId().

+ Here is the call graph for this function:

◆ getGroupObjIdByTitle()

ilMailAddressTypeHelperImpl::getGroupObjIdByTitle ( string  $title)

Parameters
string$title
Returns
int

Implements ilMailAddressTypeHelper.

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

33 : int
34 {
35 return (int) ilObjGroup::_lookupIdByTitle($title);
36 }
static _lookupIdByTitle($a_title)

References ilObjGroup\_lookupIdByTitle().

+ Here is the call graph for this function:

◆ getInstallationHost()

ilMailAddressTypeHelperImpl::getInstallationHost ( )

Returns
string

Implements ilMailAddressTypeHelper.

Definition at line 65 of file class.ilMailAddressTypeHelper.php.

65 : string
66 {
68 }

References $installationHost.

◆ getInstanceByRefId()

ilMailAddressTypeHelperImpl::getInstanceByRefId ( int  $refId)

Parameters
int$refId
Returns
ilObject

Implements ilMailAddressTypeHelper.

Definition at line 41 of file class.ilMailAddressTypeHelper.php.

41 : ilObject
42 {
44 }
static getInstanceByRefId($a_ref_id, $stop_on_error=true)
get an instance of an Ilias object by reference id
Class ilObject Basic functions for all objects.
$refId
Definition: xapitoken.php:42

References $refId, and ilObjectFactory\getInstanceByRefId().

+ Here is the call graph for this function:

◆ getUserIdByLogin()

ilMailAddressTypeHelperImpl::getUserIdByLogin ( string  $login)

Parameters
string$login
Returns
int

Implements ilMailAddressTypeHelper.

Definition at line 57 of file class.ilMailAddressTypeHelper.php.

57 : int
58 {
60 }
static getUserIdByLogin($a_login)
$login
Definition: cron.php:13

References $login, and ilObjUser\getUserIdByLogin().

+ Here is the call graph for this function:

◆ receivesInternalMailsOnly()

ilMailAddressTypeHelperImpl::receivesInternalMailsOnly ( int  $usrId)
Parameters
int$usrId
Returns
bool

Implements ilMailAddressTypeHelper.

Definition at line 82 of file class.ilMailAddressTypeHelper.php.

82 : bool
83 {
84 $options = new ilMailOptions($usrId);
85
86 return (int) $options->getIncomingType() === (int) ilMailOptions::INCOMING_LOCAL;
87 }
Class ilMailOptions this class handles user mails.

References ilMailOptions\INCOMING_LOCAL.

Field Documentation

◆ $installationHost

ilMailAddressTypeHelperImpl::$installationHost = ''
protected

Definition at line 11 of file class.ilMailAddressTypeHelper.php.

Referenced by __construct(), and getInstallationHost().


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