DataStore

An abstract representation of file and directory pathnames.

package

phing.util

author

Michiel Rook [email protected]

version

$Id: aa9a94c301a8e4828bef5e55f557253d9bb1a059 $

Methods

Constructs a new data store

__construct(\PhingFile $file) 

Arguments

$file

\PhingFile

object pointing to the data store on disk

Destructor

__destruct() 

Commits data store to disk

commit() : void

Retrieves a value from the data store

get(string $key) : mixed

Arguments

$key

string

the key

Response

mixed

the value

Adds a value to the data store

put(string $key, mixed $value, boolean $autocommit = false) : void

Arguments

$key

string

the key

$value

mixed

the value

$autocommit

boolean

whether to auto-commit (write) the data store to disk

Internal function to read data store from file

read() : void
Throws
\BuildException

Remove a value from the data store

remove(string $key, boolean $autocommit = false) 

Arguments

$key

string

the key

$autocommit

boolean

whether to auto-commit (write) the data store to disk

Internal function to write data store to file

write() : void
Throws
\BuildException

Properties

data

data : 

Type(s)

file

file : 

Type(s)