ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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
 
 $rbacsystem
 
 $rbacreview
 
 $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 36 of file class.ilBaseMailAddressType.php.

References $DIC, and init().

37  {
38  global $DIC;
39 
40  $this->rbacsystem = $DIC->rbac()->system();
41  $this->rbacreview = $DIC->rbac()->review();
42 
43  $this->address = $a_address;
44  $this->init();
45  }
global $DIC
Definition: saml.php:7
+ Here is the call graph for this function:

Member Function Documentation

◆ getErrors()

ilBaseMailAddressType::getErrors ( )
Returns
array

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

References $errors.

◆ init()

ilBaseMailAddressType::init ( )
protected

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

References isValid().

Referenced by __construct().

51  {
52  }
+ 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 init(), and validate().

+ Here is the caller graph for this function:

◆ resetErrors()

ilBaseMailAddressType::resetErrors ( )
private

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

References array.

Referenced by validate().

73  {
74  $this->errors = array();
75  }
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 63 of file class.ilBaseMailAddressType.php.

References isValid(), and resetErrors().

64  {
65  $this->resetErrors();
66  return $this->isValid($a_sender_id);
67  }
isValid($a_sender_id)
+ Here is the call graph for this function:

Field Documentation

◆ $address

◆ $errors

ilBaseMailAddressType::$errors = array()
protected

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

Referenced by getErrors().

◆ $rbacreview

ilBaseMailAddressType::$rbacreview
protected

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

◆ $rbacsystem

ilBaseMailAddressType::$rbacsystem
protected

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


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