public static function getManifest() { if (!self::$_manifest) { $file = JPATH_COMPONENT_ADMINISTRATOR . DS . 'newsletter.xml'; $path = JPath::clean($file); if (file_exists($path)) { self::$_manifest = simplexml_load_file($path); } else { self::$_manifest = new JObject(); } } return self::$_manifest; }