classes/phing/util/DataStore.php
\DataStore
An abstract representation of file and directory pathnames.
- author
- Michiel Rook
- package
- phing.util
- version
- $Revision: 543 $
Properties
Methods

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

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

put(
string $key, mixed $value, boolean $autocommit
=
false
)
:
\noneAdds a value to the data store
| 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 |