Lines Matching refs:where
52 public function add($address, $name="", $where="to") argument
61 foreach ($address as $a) $this->add($a, $name, $where);
71 if (in_array($where, array("to", "cc", "bcc")))
73 $container =& $this->$where;
82 public function remove($address, $where="to") argument
90 if (in_array($where, array("to", "cc", "bcc")))
92 if (array_key_exists($key, $this->$where)) unset($this->{$where}[$key]);
100 public function getIterator($where) argument
102 if (!empty($this->iterators[$where]))
104 return $this->iterators[$where];
106 elseif (in_array($where, array("to", "cc", "bcc")))
108 $it = new Swift_Iterator_Array($this->$where);
116 public function setIterator(Swift_Iterator $it, $where) argument
118 if (in_array($where, array("to", "cc", "bcc")))
120 $this->iterators[$where] = $it;