FileAccess Orion

GlobFileLoader extends FileLoader
in package

GlobFileLoader loads files from a glob pattern.

Tags
author

Nicolas Grekas p@tchwork.com

Table of Contents

$loading  : mixed
$locator  : mixed
$resolver  : mixed
$currentDir  : mixed
__construct()  : mixed
getLocator()  : FileLocatorInterface
Returns the file locator used by this loader.
getResolver()  : LoaderResolverInterface
Gets the loader resolver.
import()  : mixed
Imports a resource.
load()  : mixed
{@inheritdoc}
resolve()  : $this|LoaderInterface
Finds a loader able to load an imported resource.
setCurrentDir()  : mixed
Sets the current directory.
setResolver()  : mixed
Sets the loader resolver.
supports()  : mixed
{@inheritdoc}
doImport()  : mixed

Properties

$resolver

protected mixed $resolver

Methods

import()

Imports a resource.

public import(mixed $resource[, string|null $type = null ]) : mixed
Parameters
$resource : mixed

A resource

$type : string|null = null

The resource type or null if unknown

Return values
mixed

load()

{@inheritdoc}

public load(mixed $resource[, string $type = null ]) : mixed
Parameters
$resource : mixed
$type : string = null
Return values
mixed

resolve()

Finds a loader able to load an imported resource.

public resolve(mixed $resource[, string|null $type = null ]) : $this|LoaderInterface
Parameters
$resource : mixed

A resource

$type : string|null = null

The resource type or null if unknown

Tags
throws
LoaderLoadException

If no loader is found

Return values
$this|LoaderInterface

setCurrentDir()

Sets the current directory.

public setCurrentDir(string $dir) : mixed
Parameters
$dir : string
Return values
mixed

supports()

{@inheritdoc}

public supports(mixed $resource[, string $type = null ]) : mixed
Parameters
$resource : mixed
$type : string = null
Return values
mixed

doImport()

private doImport(mixed $resource[, string $type = null ][, bool $ignoreErrors = false ][, string $sourceResource = null ]) : mixed
Parameters
$resource : mixed
$type : string = null
$ignoreErrors : bool = false
$sourceResource : string = null
Return values
mixed

Search results