Developer corner¶
Target group: Developers, Integrators
Table of Contents
Using the API¶
The API can be used like described in the schema manual. But there is one detail: As the classes of this extensions use a different namespace the instantiation of type models must reflect this:
$floorPlan = new \Brotkrueml\SchemaPending\Model\Type\FloorPlan();
Alternatively, you can use the TypeFactory
, so you don’t have to deal
with namespaces:
$busOrCoach = \Brotkrueml\Schema\Type\TypeFactory::createType('FloorPlan');
Using the view helpers¶
The Fluid view helpers can be used like described in the schema manual:
<schema:type.floorPlan
-id="http://example.org/#some-floor-plan"
name="some floor plan"
/>
The Fluid namespace schema
is the same as for the core vocabulary.