sources = array_merge($this->sources, self::enumerate($plugin)); } return $sources; } public static function load($plugin, $source_filename, $scan = true, $use_cache = true) { self::ensureScanned(); if ( ! self::isValidPlugin($plugin)) { return null; } return call_user_func(array(self::classname($plugin), 'load'), $source_filename, $scan, $use_cache); } public static function loadEncoded($plugin, $encoded_filename, $scan = true, $use_cache = true) { self::ensureScanned(); if ( ! self::isValidPlugin($plugin)) { return null; } return call_user_func(array(self::classname($plugin), 'loadEncoded'), $encoded_filename, $scan, $use_cache); } public static function isValidSource($plugin, $source_filename) { self::ensureScanned(); if ( ! self::isValidPlugin($plugin)) { return null; } return call_user_func(array(self::classname($plugin), 'isValidSource'), source_filename); } } ?>