public function addChild(FlexiObject &$oObject, $sType) { if (!isset($this->aChild[$sType])) { $this->aChild[$sType] = array(); } $sName = $oObject->getName(); if ($this->existsChild($sName, $sType)) { throw new Exception("Child already exists: " . $sName); } $this->aChild[$sType][$oObject->getName()] =& $oObject; }