Commit fbf0fa24 authored by Olivier Lequeux's avatar Olivier Lequeux
Browse files

readme entriesHydrator

parent 3b921ee9
......@@ -6,18 +6,14 @@ Some basics hydrators are provided, but you will easily create your own.
## Requirements
* >= PHP 5.3
* PHP 5.3
* enable cURL PHP extension
## Get Started
### Hydrate with SimpleXMLHydrator
```
$lquery = new \Lavoisier\Query('localhost','example');
$lquery->setPath("/data/products[@month='January']");
$lquery->setHydrator(new \Lavoisier\Hydrators\SimpleXMLHydrator());
......@@ -41,3 +37,8 @@ object(SimpleXMLElement)#2 (1) {
}
}
```
### EntriesHydrator
EntriesHydrator is an XML Hydrator which allows you to map any XML files which is matching to [ex_entries xsd schema](https://gitlab.in2p3.fr/opsportal/lavoisierquery/raw/master/ex_entries.xsd).
You can customize default binding by setting default|root|key binding to your own class.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment