__construct()
__construct(integer $root = null,array $data = null)
Start reading a structure. If you pass a $root parameter the parameter is not automatically respected. You should then use your own implementation or filters to respect the root. Use this constructor to add your filters and respect your custom Structure class implementation.
Parameters
integer | $root | The root folder defined for the structure |
array | $data | Custom data for the structure |