ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilMailAutoCompleteRecipientProvider.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2014 ILIAS open source, Extended GPL, see docs/LICENSE */
3
8{
13 protected $db;
14
18 protected $res;
19
24 protected $data = array();
25
29 protected $quoted_term = '';
30
34 protected $term = '';
35
39 protected $user_id = 0;
40
45 public function __construct($quoted_term, $term)
46 {
51 global $ilDB, $ilUser;
52
53 $this->db = $ilDB;
54 $this->quoted_term = $quoted_term;
55 $this->term = $term;
56 $this->user_id = $ilUser->getId();
57 }
58
63 public function valid()
64 {
65 $this->data = $this->db->fetchAssoc($this->res);
66
67 return is_array($this->data);
68 }
69
73 public function next()
74 {
75 }
76
81 public function __destruct()
82 {
83 if($this->res)
84 {
85 $this->db->free($this->res);
86 $this->res = null;
87 }
88 }
89}
An exception for terminatinating execution or to throw for unit testing.
valid()
"Valid" implementation of iterator interface
next()
"Next" implementation of iterator interface
global $ilDB
$ilUser
Definition: imgupload.php:18