ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilMailAddressTypeHelperImpl Class Reference
+ Inheritance diagram for ilMailAddressTypeHelperImpl:
+ Collaboration diagram for ilMailAddressTypeHelperImpl:

Public Member Functions

 __construct (protected string $installation_host)
 
 doesGroupNameExists (string $name)
 
 getGroupObjIdByTitle (string $title)
 
 getInstanceByRefId (int $ref_id)
 
 getAllRefIdsForObjId (int $obj_id)
 
 getUserIdByLogin (string $login)
 
 getInstallationHost ()
 
 getGlobalMailSystemId ()
 
 receivesInternalMailsOnly (int $usr_id)
 
 doesGroupNameExists (string $name)
 
 getGroupObjIdByTitle (string $title)
 
 getInstanceByRefId (int $ref_id)
 
 getAllRefIdsForObjId (int $obj_id)
 
 getUserIdByLogin (string $login)
 
 getInstallationHost ()
 
 getGlobalMailSystemId ()
 
 receivesInternalMailsOnly (int $usr_id)
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilMailAddressTypeHelperImpl::__construct ( protected string  $installation_host)

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

24 {
25 }

Member Function Documentation

◆ doesGroupNameExists()

ilMailAddressTypeHelperImpl::doesGroupNameExists ( string  $name)

Implements ilMailAddressTypeHelper.

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

27 : bool
28 {
29 return ilUtil::groupNameExists($name);
30 }
static groupNameExists(string $a_group_name, ?int $a_id=null)
checks if group name already exists.

References ilUtil\groupNameExists().

+ Here is the call graph for this function:

◆ getAllRefIdsForObjId()

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

Implements ilMailAddressTypeHelper.

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

42 : array
43 {
44 return array_map(intval(...), ilObject::_getAllReferences($obj_id));
45 }
static _getAllReferences(int $id)
get all reference ids for object ID

References ilObject\_getAllReferences().

+ Here is the call graph for this function:

◆ getGlobalMailSystemId()

ilMailAddressTypeHelperImpl::getGlobalMailSystemId ( )

Implements ilMailAddressTypeHelper.

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

References ilMailGlobalServices\getMailObjectRefId().

+ Here is the call graph for this function:

◆ getGroupObjIdByTitle()

ilMailAddressTypeHelperImpl::getGroupObjIdByTitle ( string  $title)

Implements ilMailAddressTypeHelper.

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

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

References ilObjGroup\_lookupIdByTitle().

+ Here is the call graph for this function:

◆ getInstallationHost()

ilMailAddressTypeHelperImpl::getInstallationHost ( )

Implements ilMailAddressTypeHelper.

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

52 : string
53 {
54 return $this->installation_host;
55 }

◆ getInstanceByRefId()

ilMailAddressTypeHelperImpl::getInstanceByRefId ( int  $ref_id)

Implements ilMailAddressTypeHelper.

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

37 : ilObject
38 {
40 }
static getInstanceByRefId(int $ref_id, bool $stop_on_error=true)
get an instance of an Ilias object by reference id
Class ilObject Basic functions for all objects.
$ref_id
Definition: ltiauth.php:66

References $ref_id, and ilObjectFactory\getInstanceByRefId().

+ Here is the call graph for this function:

◆ getUserIdByLogin()

ilMailAddressTypeHelperImpl::getUserIdByLogin ( string  $login)

Implements ilMailAddressTypeHelper.

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

47 : int
48 {
49 return ilObjUser::getUserIdByLogin($login);
50 }
static getUserIdByLogin(string $a_login)

References ilObjUser\getUserIdByLogin().

+ Here is the call graph for this function:

◆ receivesInternalMailsOnly()

ilMailAddressTypeHelperImpl::receivesInternalMailsOnly ( int  $usr_id)

Implements ilMailAddressTypeHelper.

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

62 : bool
63 {
64 $options = new ilMailOptions($usr_id);
65
66 return $options->getIncomingType() === ilMailOptions::INCOMING_LOCAL;
67 }
final const int INCOMING_LOCAL

References ilMailOptions\INCOMING_LOCAL.


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