PHP Класс Hylax_Storage, horde

Copyright 2003-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.
Автор: Marko Djukic ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$_params array A hash containing any parameters for the current storage driver.
$_vfs VFS

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

Метод Описание
Hylax_Storage ( array $params ) Constructor
createFax ( $info, $fix_owner = false )
factory ( string $driver, array $params = [] ) : Hylax_Storage Attempts to return a concrete Hylax_Storage instance based on $driver.
getFaxData ( $fax_id )
listFaxes ( $folder )
saveFaxData ( $data, $type = '.ps' )
send ( $fax_id, $number )
singleton ( string $driver, array $params = [] ) : mixed Attempts to return a reference to a concrete Hylax_Storage instance based on $driver.

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

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

Constructor
public Hylax_Storage ( array $params )
$params array Any parameters needed for this storage driver.

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

public createFax ( $info, $fix_owner = false )

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

Attempts to return a concrete Hylax_Storage instance based on $driver.
public factory ( string $driver, array $params = [] ) : Hylax_Storage
$driver string The type of concrete Hylax_Storage subclass to return.
$params array A hash containing any additional configuration or connection parameters a subclass might need.
Результат Hylax_Storage The newly created concrete Hylax_Storage instance, or false on error.

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

public getFaxData ( $fax_id )

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

public listFaxes ( $folder )

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

public saveFaxData ( $data, $type = '.ps' )

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

public send ( $fax_id, $number )

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

It will only create a new instance if no Hylax_Storage instance with the same parameters currently exists. This should be used if multiple storage sources are required. This method must be invoked as: $var = &Hylax_Storage::singleton()
public singleton ( string $driver, array $params = [] ) : mixed
$driver string The type of concrete Hylax_Storage subclass to return.
$params array A hash containing any additional configuration or connection parameters a subclass might need.
Результат mixed The created concrete Hylax_Storage instance, or false on error.

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

$_params публичное свойство

A hash containing any parameters for the current storage driver.
public array $_params
Результат array

$_vfs публичное свойство

public VFS $_vfs
Результат VFS