public function getObject($object_id) { $objects = $this->getObjects(); if (isset($objects[$object_id])) { return $objects[$object_id]; } else { throw new Horde_Kolab_Storage_Exception(sprintf('Object ID %s does not exist!', $object_id)); } }