PHP Класс TQ\Vcs\StreamWrapper\FileBuffer\Factory

Наследование: implements TQ\Vcs\StreamWrapper\FileBuffer\FactoryInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$factoryList SplPriorityQueue The list containing the possible factories

Открытые методы

Метод Описание
__construct ( ) Creates a new factory resolver
addFactory ( TQ\Vcs\StreamWrapper\FileBuffer\FactoryInterface $factory, integer $priority = 10 ) : Factory Adds a factory to the list of possible factories
canHandle ( TQ\Vcs\StreamWrapper\PathInformationInterface $path, string $mode ) : boolean Returns true if this factory can handle the requested path
createFileBuffer ( TQ\Vcs\StreamWrapper\PathInformationInterface $path, string $mode ) : TQ\Vcs\Buffer\FileBufferInterface Returns the file stream to handle the requested path
findFactory ( TQ\Vcs\StreamWrapper\PathInformationInterface $path, string $mode ) : Factory Returns the file stream factory to handle the requested path
getDefault ( ) : Factory Returns a default factory

Описание методов

__construct() публичный Метод

Creates a new factory resolver
public __construct ( )

addFactory() публичный Метод

Adds a factory to the list of possible factories
public addFactory ( TQ\Vcs\StreamWrapper\FileBuffer\FactoryInterface $factory, integer $priority = 10 ) : Factory
$factory TQ\Vcs\StreamWrapper\FileBuffer\FactoryInterface The factory to add
$priority integer The priority
Результат Factory The factory

canHandle() публичный Метод

Returns true if this factory can handle the requested path
public canHandle ( TQ\Vcs\StreamWrapper\PathInformationInterface $path, string $mode ) : boolean
$path TQ\Vcs\StreamWrapper\PathInformationInterface The path information
$mode string The mode used to open the file
Результат boolean True if this factory can handle the path

createFileBuffer() публичный Метод

Returns the file stream to handle the requested path
public createFileBuffer ( TQ\Vcs\StreamWrapper\PathInformationInterface $path, string $mode ) : TQ\Vcs\Buffer\FileBufferInterface
$path TQ\Vcs\StreamWrapper\PathInformationInterface The path information
$mode string The mode used to open the path
Результат TQ\Vcs\Buffer\FileBufferInterface The file buffer to handle the path

findFactory() публичный Метод

Returns the file stream factory to handle the requested path
public findFactory ( TQ\Vcs\StreamWrapper\PathInformationInterface $path, string $mode ) : Factory
$path TQ\Vcs\StreamWrapper\PathInformationInterface The path information
$mode string The mode used to open the path
Результат Factory The file buffer factory to handle the path

getDefault() публичный статический Метод

includes: - CommitFactory - HeadFileFactory - DefaultFactory
public static getDefault ( ) : Factory
Результат Factory

Описание свойств

$factoryList защищенное свойство

The list containing the possible factories
protected SplPriorityQueue $factoryList
Результат SplPriorityQueue