First creates domstor builder:
$builder = new Domstor_Builder();
Then build $domstor
object, you must define two parameters org_id
and location_id
:
$domstor = $builder->build(array(
'org_id' => 1, // Organisation id
'location_id' => 2004, // Location id
));
Get $list
object. You must specify $page
number by getting it through request or some other way
$list = $domstor->getList($object, $action, $page);