ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
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)
 

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.

References ilUtil\groupNameExists().

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

References ilObject\_getAllReferences().

49  : array
50  {
51  return array_map('intval', ilObject::_getAllReferences($objId));
52  }
$objId
Definition: xapitoken.php:41
static _getAllReferences($a_id)
get all reference ids of object
+ Here is the call graph for this function:

◆ 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  {
35  return (int) ilObjGroup::_lookupIdByTitle($title);
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
ilObject

Implements ilMailAddressTypeHelper.

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

References ilObjectFactory\getInstanceByRefId().

41  : ilObject
42  {
44  }
$refId
Definition: xapitoken.php:42
static getInstanceByRefId($a_ref_id, $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)

Parameters
string$login
Returns
int

Implements ilMailAddressTypeHelper.

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

References ilObjUser\getUserIdByLogin().

57  : int
58  {
59  return (int) ilObjUser::getUserIdByLogin($login);
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 ilMailOptions\INCOMING_LOCAL.

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.

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: