Lines Matching refs:id
147 foreach ($this->children as $id => $child)
149 $this->children[$id]->setLE($le);
174 foreach ($this->children as $id => $child)
176 $this->children[$id]->uncacheAll();
235 foreach ($this->children as $id => $child)
237 … if (!$child->getEncoding()) $this->children[$id]->setEncoding($encoding, $recursive, $non_ascii);
393 public function addChild(Swift_Message_Mime $mime, $id=null, $after=1) argument
395 if (empty($id))
399 $id = uniqid();
400 } while (array_key_exists($id, $this->children));
402 $id = (string) $id;
403 if ($after == -1) $this->children = array_merge(array($id => $mime), $this->children);
404 else $this->children[$id] = $mime;
406 return $id;
413 public function hasChild($id) argument
415 return array_key_exists($id, $this->children);
423 public function getChild($id) argument
425 if ($this->hasChild($id))
427 return $this->children[$id];
432 …"Cannot retrieve child part identified by '" . $id . "' as it does not exist. Consider using hasC…
440 public function removeChild($id) argument
442 $id = (string) $id;
443 if (!$this->hasChild($id))
446 …"Cannot remove child part identified by '" . $id . "' as it does not exist. Consider using hasChil…
450 $this->children[$id] = null;
451 unset($this->children[$id]);