ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilMailAddressType Interface Reference

Interface ilMailAddressType. More...

+ Inheritance diagram for ilMailAddressType:
+ Collaboration diagram for ilMailAddressType:

Public Member Functions

 resolve ()
 Returns an array of resolved user ids based on an address instance. More...
 
 validate (int $senderId)
 Validates the parsed recipients and set errors accordingly. More...
 
 getErrors ()
 Returns a list of errors determined in the validation process. More...
 
 getAddress ()
 The address instance used for validation and user id lookup. More...
 

Detailed Description

Interface ilMailAddressType.

Author
Michael Jansen mjans.nosp@m.en@d.nosp@m.ataba.nosp@m.y.de

Definition at line 25 of file interface.ilMailAddressType.php.

Member Function Documentation

◆ getAddress()

ilMailAddressType::getAddress ( )

The address instance used for validation and user id lookup.

Implemented in ilBaseMailAddressType, and ilMailCachedAddressType.

◆ getErrors()

ilMailAddressType::getErrors ( )

Returns a list of errors determined in the validation process.

The errors should be reset everytime the validation is triggered.

Returns
ilMailError[]
See also
ilMailAddressType::validate

Implemented in ilBaseMailAddressType, and ilMailCachedAddressType.

◆ resolve()

ilMailAddressType::resolve ( )

Returns an array of resolved user ids based on an address instance.

Returns
int[]

Implemented in ilMailRoleAddressType, ilMailLoginOrEmailAddressAddressType, ilMailCachedAddressType, ilMailMailingListAddressType, and ilMailGroupAddressType.

◆ validate()

ilMailAddressType::validate ( int  $senderId)

Validates the parsed recipients and set errors accordingly.

Parameters
int$senderIdThe id of the acting ILIAS user, can be used for permission checks etc.
See also
ilMailAddressType::getErrors

Implemented in ilMailCachedAddressType, and ilBaseMailAddressType.


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