Object Type Definition Package Installation Plugin#
Registers an object type definition. An object type definition is a blueprint for a certain behaviour that is particularized by objectTypes. As an example: Tags can be attached to different types of content (such as forum posts or gallery images). The bulk of the work is implemented in a generalized fashion, with all the tags stored in a single database table. Certain things, such as permission checking, need to be particularized for the specific type of content, though. Thus tags (or rather “taggable content”) are registered as an object type definition. Posts are then registered as an object type, implementing the “taggable content” behaviour.
Other types of object type definitions include attachments, likes, polls, subscriptions, or even the category system.
Each item is described as a
<definition> element with the mandatory child
<name> that should follow the naming pattern
The name of the PHP interface objectTypes have to implement.
1 2 3 4 5 6 7 8 9