public function registerContent($id, TContent $object) { if (isset($this->_contents[$id])) { throw new TConfigurationException('templatecontrol_contentid_duplicated', $id); } else { $this->_contents[$id] = $object; } }