PHP Class Flintstone\Database

Afficher le fichier Open project: fire015/flintstone Class Usage Examples

Protected Properties

Свойство Type Description
$config Config Config class.
$fileAccessMode array File access mode.
$name string Database name.

Méthodes publiques

Méthode Description
__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.

Method Details

__construct() public méthode

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

closeFile() public méthode

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

getConfig() public méthode

Get the config.
public getConfig ( ) : Config
Résultat Config

getName() public méthode

Get the database name.
public getName ( ) : string
Résultat string

getPath() public méthode

Get the path to the database file.
public getPath ( ) : string
Résultat string

openFile() public méthode

Open the database file.
public openFile ( integer $mode ) : SplFileObject
$mode integer
Résultat SplFileObject

openTempFile() public méthode

Open a temporary file.
public openTempFile ( ) : SplTempFileObject
Résultat SplTempFileObject

setConfig() public méthode

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

setName() public méthode

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

Property Details

$config protected_oe property

Config class.
protected Config,flintstone $config
Résultat Config

$fileAccessMode protected_oe property

File access mode.
protected array $fileAccessMode
Résultat array

$name protected_oe property

Database name.
protected string $name
Résultat string