Developer corner

Target group: Developers, Integrators

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:

$comicStory = new \Brotkrueml\SchemaBib\Model\Type\ComicStory();

Alternatively, you can use the TypeFactory, so you don’t have to deal with namespaces:

$comicStory = \Brotkrueml\Schema\Type\TypeFactory::createType('ComicStory');

Using the view helpers

The Fluid view helpers can be used like described in the schema manual:

<schema:type.comicStory
   -id="http://example.org/#some-comic-story"
   name="some comic story"
/>

The Fluid namespace schema is the same as for the core vocabulary.