Skip to content

FileAdapter

  • Full name: \Qubus\View\Adapter\FileAdapter
  • This class is marked as final and can't be subclassed
  • This class implements: \Qubus\View\Adapter\Adapter
  • This class is a Final class

Properties

source

private string|array $source

Methods

__construct

public __construct(string|array $source): mixed

Parameters:

Parameter Type Description
$source string|array

isReadable

public isReadable(string $path): bool

Parameters:

Parameter Type Description
$path string

lastModified

public lastModified(string $path): int

Parameters:

Parameter Type Description
$path string

getContents

public getContents(string $path): string

Parameters:

Parameter Type Description
$path string

putContents

public putContents(string $path, string $contents): int|bool

Parameters:

Parameter Type Description
$path string
$contents string

getStreamUrl

public getStreamUrl(string $path): string

Parameters:

Parameter Type Description
$path string


Automatically generated on 2025-10-13