ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilMailAddressTypeHelperImpl Class Reference

Class ilMailAddressTypeHelper. More...

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

Public Member Functions

 __construct (protected string $installationHost)
 
 doesGroupNameExists (string $name)
 
 getGroupObjIdByTitle (string $title)
 
 getInstanceByRefId (int $refId)
 
 getAllRefIdsForObjId (int $objId)
 
 getUserIdByLogin (string $login)
 
 getInstallationHost ()
 
 getGlobalMailSystemId ()
 
 receivesInternalMailsOnly (int $usrId)
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilMailAddressTypeHelperImpl::__construct ( protected string  $installationHost)

Definition at line 27 of file class.ilMailAddressTypeHelperImpl.php.

28  {
29  }

Member Function Documentation

◆ doesGroupNameExists()

ilMailAddressTypeHelperImpl::doesGroupNameExists ( string  $name)

Implements ilMailAddressTypeHelper.

Definition at line 31 of file class.ilMailAddressTypeHelperImpl.php.

References ilUtil\groupNameExists().

31  : bool
32  {
33  return ilUtil::groupNameExists($name);
34  }
static groupNameExists(string $a_group_name, ?int $a_id=null)
checks if group name already exists.
+ Here is the call graph for this function:

◆ getAllRefIdsForObjId()

ilMailAddressTypeHelperImpl::getAllRefIdsForObjId ( int  $objId)
Returns
int[]

Implements ilMailAddressTypeHelper.

Definition at line 46 of file class.ilMailAddressTypeHelperImpl.php.

References ilObject\_getAllReferences().

46  : array
47  {
48  return array_map('intval', ilObject::_getAllReferences($objId));
49  }
static _getAllReferences(int $id)
get all reference ids for object ID
$objId
Definition: xapitoken.php:57
+ Here is the call graph for this function:

◆ getGlobalMailSystemId()

ilMailAddressTypeHelperImpl::getGlobalMailSystemId ( )

Implements ilMailAddressTypeHelper.

Definition at line 61 of file class.ilMailAddressTypeHelperImpl.php.

References ilMailGlobalServices\getMailObjectRefId().

61  : int
62  {
64  }
+ Here is the call graph for this function:

◆ getGroupObjIdByTitle()

ilMailAddressTypeHelperImpl::getGroupObjIdByTitle ( string  $title)

Implements ilMailAddressTypeHelper.

Definition at line 36 of file class.ilMailAddressTypeHelperImpl.php.

References ilObjGroup\_lookupIdByTitle().

36  : int
37  {
38  return (int) ilObjGroup::_lookupIdByTitle($title);
39  }
static _lookupIdByTitle(string $a_title)
+ Here is the call graph for this function:

◆ getInstallationHost()

ilMailAddressTypeHelperImpl::getInstallationHost ( )

Implements ilMailAddressTypeHelper.

Definition at line 56 of file class.ilMailAddressTypeHelperImpl.php.

56  : string
57  {
58  return $this->installationHost;
59  }

◆ getInstanceByRefId()

ilMailAddressTypeHelperImpl::getInstanceByRefId ( int  $refId)

Implements ilMailAddressTypeHelper.

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

References ilObjectFactory\getInstanceByRefId().

41  : ilObject
42  {
44  }
$refId
Definition: xapitoken.php:58
static getInstanceByRefId(int $ref_id, bool $stop_on_error=true)
get an instance of an Ilias object by reference id
+ Here is the call graph for this function:

◆ getUserIdByLogin()

ilMailAddressTypeHelperImpl::getUserIdByLogin ( string  $login)

Implements ilMailAddressTypeHelper.

Definition at line 51 of file class.ilMailAddressTypeHelperImpl.php.

References ilObjUser\getUserIdByLogin().

51  : int
52  {
53  return ilObjUser::getUserIdByLogin($login);
54  }
static getUserIdByLogin(string $a_login)
+ Here is the call graph for this function:

◆ receivesInternalMailsOnly()

ilMailAddressTypeHelperImpl::receivesInternalMailsOnly ( int  $usrId)

Implements ilMailAddressTypeHelper.

Definition at line 66 of file class.ilMailAddressTypeHelperImpl.php.

References ilMailOptions\INCOMING_LOCAL.

66  : bool
67  {
68  $options = new ilMailOptions($usrId);
69 
70  return $options->getIncomingType() === ilMailOptions::INCOMING_LOCAL;
71  }
final const INCOMING_LOCAL

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