PHP Class Flintstone\Database

Mostra file Open project: fire015/flintstone Class Usage Examples

Protected Properties

Property Type Description
$config Config Config class.
$fileAccessMode array File access mode.
$name string Database name.

Public Methods

Method 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 method

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

closeFile() public method

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

getConfig() public method

Get the config.
public getConfig ( ) : Config
return Config

getName() public method

Get the database name.
public getName ( ) : string
return string

getPath() public method

Get the path to the database file.
public getPath ( ) : string
return string

openFile() public method

Open the database file.
public openFile ( integer $mode ) : SplFileObject
$mode integer
return SplFileObject

openTempFile() public method

Open a temporary file.
public openTempFile ( ) : SplTempFileObject
return SplTempFileObject

setConfig() public method

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

setName() public method

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

Property Details

$config protected_oe property

Config class.
protected Config,flintstone $config
return Config

$fileAccessMode protected_oe property

File access mode.
protected array $fileAccessMode
return array

$name protected_oe property

Database name.
protected string $name
return string