core/Module/ModuleConfig.php
public function listResources()
	{
		$list = [];
		$path = $this->getPath() . "resources";
		if( file_exists($path) )
		{
			$scan = @ scandir($path);
			if( !$scan )
			{
				throw new ReadException("Cannot ready resources directory for the '" . get_class($this) . "' module");
			}

			$path .= DIRECTORY_SEPARATOR;
			foreach( $scan as $file )
			{
				if( $file[0] !== "." && preg_match('/\.json$/', $file) )
				{
					$list[] = new Resource($path . $file);
				}
			}
		}

		return new Collection($list);
	}
public function listResources()
	{
		$list = [];
		$path = $this->getPath() . "resources";
		if( file_exists($path) )
		{
			$scan = @ scandir($path);
			if( !$scan )
			{
				throw new ReadException("Cannot ready resources directory for the '" . get_class($this) . "' module");
			}

			$path .= DIRECTORY_SEPARATOR;
			foreach( $scan as $file )
			{
				if( $file[0] !== "." && preg_match('/\.json$/', $file) )
				{
					$list[] = new Resource($path . $file);
				}
			}
		}

		return new Collection($list);
	}
public function listResources ( ) { $ list = [ ] ; $ path = $ this -> getPath ( ) . "resources" ; if ( file_exists ( $ path ) ) { $ scan = @ scandir ( $ path ) ; if ( ! $ scan ) { throw new ReadException ( "Cannot ready resources directory for the '" . get_class ( $ this ) . "' module" ) ; } $ path .= DIRECTORY_SEPARATOR ; foreach ( $ scan as $ file ) { if ( $ file [ 0 ] !== "." && preg_match ( '/\.json$/' , $ file ) ) { $ list [ ] = new Resource ( $ path . $ file ) ; } } } return new Collection ( $ list ) ; }
Get all module resources

@return Collection
@throws ReadException
Get all module resources