PHP Класс Flintstone\Database

Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$config Config Config class.
$fileAccessMode array File access mode.
$name string Database name.

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

Метод Описание
__construct ( string $name, Config $config = null ) Constructor.
closeFile ( SplFileObject &$file ) Close the database file.
getConfig ( ) : Config Get the config.
getName ( ) : string Get the database name.
getPath ( ) : string Get the path to the database file.
openFile ( integer $mode ) : SplFileObject Open the database file.
openTempFile ( ) : SplTempFileObject Open a temporary file.
setConfig ( Config $config ) Set the config.
setName ( string $name ) Set the database name.

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

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

Constructor.
public __construct ( string $name, Config $config = null )
$name string
$config Config

closeFile() публичный метод

Close the database file.
public closeFile ( SplFileObject &$file )
$file SplFileObject

getConfig() публичный метод

Get the config.
public getConfig ( ) : Config
Результат Config

getName() публичный метод

Get the database name.
public getName ( ) : string
Результат string

getPath() публичный метод

Get the path to the database file.
public getPath ( ) : string
Результат string

openFile() публичный метод

Open the database file.
public openFile ( integer $mode ) : SplFileObject
$mode integer
Результат SplFileObject

openTempFile() публичный метод

Open a temporary file.
public openTempFile ( ) : SplTempFileObject
Результат SplTempFileObject

setConfig() публичный метод

Set the config.
public setConfig ( Config $config )
$config Config

setName() публичный метод

Set the database name.
public setName ( string $name )
$name string

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

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

Config class.
protected Config,flintstone $config
Результат Config

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

File access mode.
protected array $fileAccessMode
Результат array

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

Database name.
protected string $name
Результат string