util/DataStore.php
An abstract representation of file and directory pathnames.
- Author
- Michiel Rook
- Package
- phing.util
- Version
- $Id$
\DataStore
Package: phing\util
An abstract representation of file and directory pathnames.
- Author
- Michiel Rook
- Version
- $Id$
Properties
Methods


__construct(
\PhingFile $file
)
:
void
Constructs a new data store
Parameters
Name | Type | Description |
---|---|---|
$file | \PhingFile | object pointing to the data store on disk |


get(
string $key
)
:
mixed
Retrieves a value from the data store
Parameters
Returns
Name | Type | Description |
---|---|---|
$key | string | the key |
Type | Description |
---|---|
mixed | the value |


put(
string $key, mixed $value, boolean $autocommit
=
false
)
:
\none
Adds a value to the data store
Parameters
Returns
Name | Type | Description |
---|---|---|
$key | string | the key |
$value | mixed | the value |
$autocommit | boolean | whether to auto-commit (write) the data store to disk |
Type | Description |
---|---|
\none |