/** * Get list of registered objects (names only) * @return array */ public function getRegisteredObjects() { if (is_null(self::$_objects)) { $paths = File::scanFiles(Db_Object_Config::getConfigPath(), array('.php'), false, File::Files_Only); self::$_objects = array(); if (!empty($paths)) { foreach ($paths as $path) { self::$_objects[] = substr(basename($path), 0, -4); } } /* * Scan for External objects */ if (self::$_externalsExpert) { $objects = self::$_externalsExpert->getObjects(); if (!empty($objects)) { self::$_objects = array_merge(self::$_objects, array_keys($objects)); } } } return self::$_objects; }