ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilMailAutoCompleteRecipientProvider Class Reference

Class ilMailAutoCompleteRecipientProvider. More...

+ Inheritance diagram for ilMailAutoCompleteRecipientProvider:
+ Collaboration diagram for ilMailAutoCompleteRecipientProvider:

Public Member Functions

 __construct ($quoted_term, $term)
 
 valid ()
 "Valid" implementation of iterator interface More...
 
 next ()
 "Next" implementation of iterator interface More...
 
 __destruct ()
 Destructor Free the result. More...
 

Protected Attributes

 $db
 
 $res
 
 $data = array()
 
 $quoted_term = ''
 
 $term = ''
 
 $user_id = 0
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilMailAutoCompleteRecipientProvider::__construct (   $quoted_term,
  $term 
)
Parameters
string$quoted_term
string$term

Definition at line 45 of file class.ilMailAutoCompleteRecipientProvider.php.

References $DIC, $quoted_term, and $term.

46  {
47  global $DIC;
48 
49  $this->db = $DIC->database();
50  $this->quoted_term = $quoted_term;
51  $this->term = $term;
52  $this->user_id = $DIC->user()->getId();
53  }
global $DIC
Definition: saml.php:7

◆ __destruct()

ilMailAutoCompleteRecipientProvider::__destruct ( )

Destructor Free the result.

Definition at line 77 of file class.ilMailAutoCompleteRecipientProvider.php.

78  {
79  if ($this->res) {
80  $this->db->free($this->res);
81  $this->res = null;
82  }
83  }

Member Function Documentation

◆ next()

ilMailAutoCompleteRecipientProvider::next ( )

"Next" implementation of iterator interface

Definition at line 69 of file class.ilMailAutoCompleteRecipientProvider.php.

70  {
71  }

◆ valid()

ilMailAutoCompleteRecipientProvider::valid ( )

"Valid" implementation of iterator interface

Returns
boolean true/false

Definition at line 59 of file class.ilMailAutoCompleteRecipientProvider.php.

References data.

60  {
61  $this->data = $this->db->fetchAssoc($this->res);
62 
63  return is_array($this->data);
64  }
Add some data

Field Documentation

◆ $data

ilMailAutoCompleteRecipientProvider::$data = array()
protected

◆ $db

ilMailAutoCompleteRecipientProvider::$db
protected

◆ $quoted_term

ilMailAutoCompleteRecipientProvider::$quoted_term = ''
protected

◆ $res

ilMailAutoCompleteRecipientProvider::$res
protected

◆ $term

ilMailAutoCompleteRecipientProvider::$term = ''
protected

◆ $user_id

ilMailAutoCompleteRecipientProvider::$user_id = 0
protected

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