ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilBaseMailAddressType Class Reference

Class ilBaseMailAddressType. More...

+ Inheritance diagram for ilBaseMailAddressType:
+ Collaboration diagram for ilBaseMailAddressType:

Public Member Functions

 __construct (ilMailAddress $a_address)
 ilBaseMailAddressType constructor. More...
 
 validate ($a_sender_id)
 {
Parameters
$a_sender_idinteger
Returns
bool
} More...
 
 getErrors ()
 
- Public Member Functions inherited from ilMailAddressType
 resolve ()
 Returns an array of resolved user ids. More...
 

Protected Member Functions

 init ()
 
 isValid ($a_sender_id)
 

Protected Attributes

 $address
 
 $errors = array()
 

Private Member Functions

 resetErrors ()
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilBaseMailAddressType::__construct ( ilMailAddress  $a_address)

ilBaseMailAddressType constructor.

Parameters
ilMailAddress$a_address

Definition at line 26 of file class.ilBaseMailAddressType.php.

References init().

27  {
28  $this->address = $a_address;
29  $this->init();
30  }
+ Here is the call graph for this function:

Member Function Documentation

◆ getErrors()

ilBaseMailAddressType::getErrors ( )
Returns
array

Definition at line 65 of file class.ilBaseMailAddressType.php.

References $errors.

◆ init()

ilBaseMailAddressType::init ( )
protected

Definition at line 35 of file class.ilBaseMailAddressType.php.

References isValid().

Referenced by __construct().

36  {
37  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isValid()

ilBaseMailAddressType::isValid (   $a_sender_id)
abstractprotected
Parameters
$a_sender_idinteger
Returns
boolean

Referenced by ilMailRoleAddressType\getRoleIdsByAddress(), init(), and validate().

+ Here is the caller graph for this function:

◆ resetErrors()

ilBaseMailAddressType::resetErrors ( )
private

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

References array.

Referenced by validate().

58  {
59  $this->errors = array();
60  }
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ validate()

ilBaseMailAddressType::validate (   $a_sender_id)

{

Parameters
$a_sender_idinteger
Returns
bool
}

Implements ilMailAddressType.

Definition at line 48 of file class.ilBaseMailAddressType.php.

References isValid(), and resetErrors().

49  {
50  $this->resetErrors();
51  return $this->isValid($a_sender_id);
52  }
isValid($a_sender_id)
+ Here is the call graph for this function:

Field Documentation

◆ $address

ilBaseMailAddressType::$address
protected

◆ $errors

ilBaseMailAddressType::$errors = array()
protected

Definition at line 20 of file class.ilBaseMailAddressType.php.

Referenced by getErrors().


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