public function offsetGet($offset)
{
$this->_reindex();
if (strcmp($offset, $this->getMimeId()) === 0) {
$this->parent = null;
return $this;
}
foreach ($this->_parts as $val) {
if (strcmp($offset, $val->getMimeId()) === 0) {
$val->parent = $this;
return $val;
}
if ($found = $val[$offset]) {
return $found;
}
}
return null;
}