ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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
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)
 

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.

References $installationHost.

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

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  {
27  return \ilUtil::groupNameExists($name);
28  }

◆ 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 \ilObject::_getAllReferences($objId);
52  }

◆ getGlobalMailSystemId()

ilMailAddressTypeHelperImpl::getGlobalMailSystemId ( )

Returns
int

Implements ilMailAddressTypeHelper.

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

References ilMailGlobalServices\getMailObjectRefId().

73  : int
74  {
76  }
static getMailObjectRefId()
Determines the reference id of the mail object and stores this information in a local cache variable...
+ 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.

References ilObjGroup\_lookupIdByTitle().

33  : int
34  {
36  }
static _lookupIdByTitle($a_title)
+ Here is the call graph for this function:

◆ getInstallationHost()

ilMailAddressTypeHelperImpl::getInstallationHost ( )

Returns
string

Implements ilMailAddressTypeHelper.

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

References $installationHost.

65  : string
66  {
68  }

◆ getInstanceByRefId()

ilMailAddressTypeHelperImpl::getInstanceByRefId ( int  $refId)

Parameters
int$refId
Returns

Implements ilMailAddressTypeHelper.

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

41  : \ilObject
42  {
43  return \ilObjectFactory::getInstanceByRefId($refId);
44  }
Class ilObject Basic functions for all objects.

◆ getUserIdByLogin()

ilMailAddressTypeHelperImpl::getUserIdByLogin ( string  $login)

Parameters
string$login
Returns
int

Implements ilMailAddressTypeHelper.

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

References ilObjUser\getUserIdByLogin().

57  : int
58  {
60  }
static getUserIdByLogin($a_login)
$login
Definition: cron.php:13
+ 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.

References PHPMailer\PHPMailer\$options, and ilMailOptions\INCOMING_LOCAL.

82  : bool
83  {
84  $options = new \ilMailOptions($usrId);
85 
86  return (int) $options->getIncomingType() === (int) \ilMailOptions::INCOMING_LOCAL;
87  }

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: