Storages: Difference between revisions
From Sunhill Framework Documentation
recat |
added some methods |
||
Line 1: | Line 1: | ||
{{Incomplete}} | {{Incomplete}} | ||
While [[properties]] handle access and validation of data the '''storages''' take care how this data is retrieved or stored. A storage does not necessarily take or write to a persistant medium but can also retrieve informations from the system or calculate its value. The storage does not need to check for access rights or validate the input data this is done by the connected property. | While [[properties]] handle access and validation of data the '''storages''' take care how this data is retrieved or stored. A storage does not necessarily take or write to a persistant medium but can also retrieve informations from the system or calculate its value. The storage does not need to check for access rights or validate the input data this is done by the connected property. | ||
All storages are based on AbstractStorage. | |||
== Retrieve data == | |||
=== getValue(string $name) === | |||
=== getIndexedData(string name, mixed $index) === | |||
=== getElemenCount(string $name): int === | |||
=== getKeys(string $name) === | |||
=== getOffsetExists(string $name, mixed $offset): bool === | |||
== Write data == | |||
== Handle metadata == | |||
== Caching == | |||
[[Category:Storages]] | [[Category:Storages]] | ||
[[Category:Properties]] | [[Category:Properties]] |
Revision as of 12:59, 30 September 2024
This page is incomplete |
While properties handle access and validation of data the storages take care how this data is retrieved or stored. A storage does not necessarily take or write to a persistant medium but can also retrieve informations from the system or calculate its value. The storage does not need to check for access rights or validate the input data this is done by the connected property.
All storages are based on AbstractStorage.