ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
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)
 

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.

References ilUtil\groupNameExists().

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.
+ 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.

References ilObject\_getAllReferences().

42  : array
43  {
44  return array_map(intval(...), ilObject::_getAllReferences($obj_id));
45  }
static _getAllReferences(int $id)
get all reference ids for object ID
+ 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().

57  : int
58  {
60  }
+ Here is the call graph for this function:

◆ getGroupObjIdByTitle()

ilMailAddressTypeHelperImpl::getGroupObjIdByTitle ( string  $title)

Implements ilMailAddressTypeHelper.

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

References ilObjGroup\_lookupIdByTitle().

32  : int
33  {
34  return ilObjGroup::_lookupIdByTitle($title);
35  }
static _lookupIdByTitle(string $a_title)
+ 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.

References ilObjectFactory\getInstanceByRefId().

37  : ilObject
38  {
40  }
$ref_id
Definition: ltiauth.php:65
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 47 of file class.ilMailAddressTypeHelperImpl.php.

References ilObjUser\getUserIdByLogin().

47  : int
48  {
49  return ilObjUser::getUserIdByLogin($login);
50  }
static getUserIdByLogin(string $a_login)
+ 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.

References ilMailOptions\INCOMING_LOCAL.

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

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