getFilename(); // Only load for php files. // Note: DirectoryIterator::getExtension only available PHP >= 5.3.6 if (!$file->isFile() || substr($filename, strrpos($filename, '.') + 1) != 'php') { continue; } $streams[] = $file->getBasename('.php'); } } return $streams; } /** * Determine if a stream is a Joomla stream. * * @param string $streamname The name of a stream * * @return boolean True for a Joomla Stream * * @since 11.1 */ public static function isJoomlaStream($streamname) { return in_array($streamname, self::getJStreams()); } }