Skip to content

Commit

Permalink
Add core object PIP documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Gravatronics committed Apr 22, 2017
1 parent 635e210 commit a5e61e4
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion pages/package/pip/package_pip_core-object.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,27 @@ folder: package/pip
parent: package_pip
---

*Content will follow soon*
Registers `wcf\system\SingletonFactory` objects to be accessible in templates.

## Components

Each item is described as a `<coreobject>` element with the mandatory element `objectname`.

### `<objectname>`

The fully qualified class name of the class.

## Example

```xml
<?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/coreObject.xsd">
<import>
<coreobject>
<objectname>wcf\system\example\ExampleHandler</objectname>
</coreobject>
</import>
</data>
```

This object can be accessed in templates via `$__wcf->getExampleHandler()` (in general: the method name begins with `get` and ends with the unqualified class name).

0 comments on commit a5e61e4

Please sign in to comment.