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.

Components

Each item is described as a <definition> element with the mandatory child <name> that should follow the naming pattern <packageIdentifier>.<definition>, e.g. com.woltlab.wcf.example.

<interfacename>

Optional

The name of the PHP interface objectTypes have to implement.

Example

<?xml version="1.0" encoding="UTF-8"?>
<data xmlns="http://www.woltlab.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.woltlab.com http://www.woltlab.com/XSD/vortex/objectTypeDefinition.xsd">
	<import>
		<definition>
			<name>com.woltlab.wcf.example</name>
			<interfacename>wcf\system\example\IExampleObjectType</interfacename>
		</definition>
	</import>
</data>