admin/jqadm/src/Admin/JQAdm/Base.php
protected function getClassNames( $relpath, array $excludes = ['Base.php', 'Iface.php', 'Example.php', 'None.php'] )
	{
		$list = [];

		foreach( $this->getAimeos()->getIncludePaths() as $path )
		{
			$path .= DIRECTORY_SEPARATOR . $relpath;

			if( is_dir( $path ) )
			{
				foreach( new \DirectoryIterator( $path ) as $entry )
				{
					if( $entry->isFile() && !in_array( $entry->getFileName(), $excludes ) ) {
						$list[] = pathinfo( $entry->getFileName(), PATHINFO_FILENAME );
					}
				}
			}
		}

		sort( $list );
		return $list;
	}
protected function getClassNames( $relpath, array $excludes = ['Base.php', 'Iface.php', 'Example.php', 'None.php'] )
	{
		$list = [];

		foreach( $this->getAimeos()->getIncludePaths() as $path )
		{
			$path .= DIRECTORY_SEPARATOR . $relpath;

			if( is_dir( $path ) )
			{
				foreach( new \DirectoryIterator( $path ) as $entry )
				{
					if( $entry->isFile() && !in_array( $entry->getFileName(), $excludes ) ) {
						$list[] = pathinfo( $entry->getFileName(), PATHINFO_FILENAME );
					}
				}
			}
		}

		sort( $list );
		return $list;
	}
protected function getClassNames ( $ relpath , array $ excludes = [ 'Base.php' , 'Iface.php' , 'Example.php' , 'None.php' ] ) { $ list = [ ] ; foreach ( $ this -> getAimeos ( ) -> getIncludePaths ( ) as $ path ) { $ path .= DIRECTORY_SEPARATOR . $ relpath ; if ( is_dir ( $ path ) ) { foreach ( new \ DirectoryIterator ( $ path ) as $ entry ) { if ( $ entry -> isFile ( ) && ! in_array ( $ entry -> getFileName ( ) , $ excludes ) ) { $ list [ ] = pathinfo ( $ entry -> getFileName ( ) , PATHINFO_FILENAME ) ; } } } } sort ( $ list ) ; return $ list ; }
Returns the available class names without namespace that are stored in the given path

@param string $relpath Path relative to the include paths
@param string[] $excludes List of file names to execlude
@return string[] List of available class names
Returns the available class names without namespace that are stored in the given path