Update `codebox` macro
[GitHub/WoltLab/woltlab.github.io.git] / docs / package / pip / object-type.md
CommitLineData
8659eb86 1# Object Type Package Installation Plugin
0b768461 2
723dc11b 3Registers an object type.
21609ed2 4Read about object types in the [objectTypeDefinition](object-type-definition.md) PIP.
723dc11b
TD
5
6## Components
7
8Each item is described as a `<type>` element with the mandatory child `<name>` that should follow the naming pattern `<packageIdentifier>.<definition>`, e.g. `com.woltlab.wcf.example`.
9
10### `<definitionname>`
11
21609ed2 12The `<name>` of the [objectTypeDefinition](object-type-definition.md).
723dc11b
TD
13
14### `<classname>`
15
16The name of the class providing the object types's behaviour,
17the class has to implement the `<interfacename>` interface of the object type definition.
18
19### `<*>`
20
ca3f33cf 21<span class="label label-info">Optional</span>
723dc11b 22
7713fc20 23Additional fields may be defined for specific definitions of object types.
723dc11b
TD
24Refer to the documentation of these for further explanation.
25
26## Example
27
9a3f5fa3 28{jinja{ codebox(
f778fce2
MS
29 title="objectType.xml",
30 language="xml",
31 filepath="package/pip/objectType.xml"
9a3f5fa3 32) }}