* @param IFormDocument $form
* @return \DOMElement
*/
- abstract protected function doCreateXmlElement(\DOMDocument $document, IFormDocument $form);
+ abstract protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form);
/**
* Creates a new XML element for the given document using the data provided
* by the given form and return the new dom element.
*
- * This method internally calls `doCreateXmlElement()` and fires an event.
+ * This method internally calls `prepareXmlElement()` and fires an event.
*
* @param \DOMDocument $document
* @param IFormDocument $form
* @return \DOMElement
*/
protected function createXmlElement(\DOMDocument $document, IFormDocument $form) {
- $xmlElement = $this->doCreateXmlElement($document, $form);
+ $xmlElement = $this->prepareXmlElement($document, $form);
$data = [
'document' => $document,
'form' => $form
];
- EventHandler::getInstance()->fireAction($this, 'didDoCreateXmlElement', $data);
+ EventHandler::getInstance()->fireAction($this, 'didPrepareXmlElement', $data);
if (!($data['element'] instanceof \DOMElement)) {
throw new \UnexpectedValueException('XML element is no "\DOMElement" object anymore.');
* @inheritDoc
* @since 3.2
*/
- protected function doCreateXmlElement(\DOMDocument $document, IFormDocument $form) {
+ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) {
$formData = $form->getData()['data'];
switch ($this->entryType) {
* @inheritDoc
* @since 3.2
*/
- protected function doCreateXmlElement(\DOMDocument $document, IFormDocument $form) {
- $menuItem = parent::doCreateXmlElement($document, $form);
+ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) {
+ $menuItem = parent::prepareXmlElement($document, $form);
$this->appendElementChildren($menuItem, ['icon' => null], $form);
* @inheritDoc
* @since 3.2
*/
- protected function doCreateXmlElement(\DOMDocument $document, IFormDocument $form) {
+ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) {
$data = $form->getData()['data'];
$acpSearchProvider = $document->createElement($this->tagName);
* @inheritDoc
* @since 3.2
*/
- protected function doCreateXmlElement(\DOMDocument $document, IFormDocument $form) {
+ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) {
$formData = $form->getData()['data'];
$menuItem = $document->createElement($this->tagName);
* @inheritDoc
* @since 3.2
*/
- protected function doCreateXmlElement(\DOMDocument $document, IFormDocument $form) {
+ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) {
$formData = $form->getData()['data'];
switch ($this->entryType) {
* @inheritDoc
* @since 3.2
*/
- protected function doCreateXmlElement(\DOMDocument $document, IFormDocument $form) {
+ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) {
$data = $form->getData()['data'];
$bbcode = $document->createElement($this->tagName);
* @inheritDoc
* @since 3.2
*/
- protected function doCreateXmlElement(\DOMDocument $document, IFormDocument $form) {
+ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) {
$formData = $form->getData();
$data = $formData['data'];
* @inheritDoc
* @since 3.2
*/
- protected function doCreateXmlElement(\DOMDocument $document, IFormDocument $form) {
+ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) {
$formData = $form->getData();
$data = $formData['data'];
* @inheritDoc
* @since 3.2
*/
- protected function doCreateXmlElement(\DOMDocument $document, IFormDocument $form) {
+ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) {
$coreObject = $document->createElement($this->tagName);
$this->appendElementChildren($coreObject, ['objectname'], $form);
* @inheritDoc
* @since 3.2
*/
- protected function doCreateXmlElement(\DOMDocument $document, IFormDocument $form) {
+ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) {
$data = $form->getData();
$formData = $form->getData()['data'];
* @inheritDoc
* @since 3.2
*/
- protected function doCreateXmlElement(\DOMDocument $document, IFormDocument $form) {
+ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) {
$data = $form->getData()['data'];
$eventListener = $document->createElement($this->tagName);
* @inheritDoc
* @since 3.2
*/
- protected function doCreateXmlElement(\DOMDocument $document, IFormDocument $form) {
+ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) {
$data = $form->getData()['data'];
$languageCode = $document->documentElement->getAttribute('languagecode');
* @inheritDoc
* @since 3.2
*/
- protected function doCreateXmlElement(\DOMDocument $document, IFormDocument $form) {
+ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) {
$data = $form->getData()['data'];
$provider = $document->createElement($this->tagName);
* @inheritDoc
* @since 3.2
*/
- protected function doCreateXmlElement(\DOMDocument $document, IFormDocument $form) {
+ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) {
$formData = $form->getData();
$data = $formData['data'];
* @inheritDoc
* @since 3.2
*/
- protected function doCreateXmlElement(\DOMDocument $document, IFormDocument $form) {
+ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) {
$formData = $form->getData();
if ($formData['data']['identifier'] === 'com.woltlab.wcf.MainMenu') {
* @inheritDoc
* @since 3.2
*/
- protected function doCreateXmlElement(\DOMDocument $document, IFormDocument $form) {
+ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) {
$definition = $document->createElement($this->tagName);
$this->appendElementChildren(
* @inheritDoc
* @since 3.2
*/
- protected function doCreateXmlElement(\DOMDocument $document, IFormDocument $form) {
+ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) {
$data = $form->getData()['data'];
$definitionName = ObjectTypeCache::getInstance()->getDefinition($data['definitionID'])->definitionName;
* @inheritDoc
* @since 3.2
*/
- protected function doCreateXmlElement(\DOMDocument $document, IFormDocument $form) {
- $option = parent::doCreateXmlElement($document, $form);
+ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) {
+ $option = parent::prepareXmlElement($document, $form);
switch ($this->entryType) {
case 'options':
* @inheritDoc
* @since 3.2
*/
- protected function doCreateXmlElement(\DOMDocument $document, IFormDocument $form) {
+ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) {
$data = $form->getData()['data'];
$pip = $document->createElement($this->tagName, $data['className']);
* @inheritDoc
* @since 3.2
*/
- protected function doCreateXmlElement(\DOMDocument $document, IFormDocument $form) {
+ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) {
$formData = $form->getData();
$data = $formData['data'];
* @inheritDoc
* @since 3.2
*/
- protected function doCreateXmlElement(\DOMDocument $document, IFormDocument $form) {
+ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) {
$data = $form->getData()['data'];
$smiley = $document->createElement($this->tagName);
* @inheritDoc
* @since 3.2
*/
- protected function doCreateXmlElement(\DOMDocument $document, IFormDocument $form) {
+ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) {
$data = $form->getData()['data'];
$listener = $document->createElement($this->tagName);
* @inheritDoc
* @since 3.2
*/
- protected function doCreateXmlElement(\DOMDocument $document, IFormDocument $form) {
- $option = parent::doCreateXmlElement($document, $form);
+ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) {
+ $option = parent::prepareXmlElement($document, $form);
switch ($this->entryType) {
case 'options':
* @inheritDoc
* @since 3.2
*/
- protected function doCreateXmlElement(\DOMDocument $document, IFormDocument $form) {
- $menuItem = parent::doCreateXmlElement($document, $form);
+ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) {
+ $menuItem = parent::prepareXmlElement($document, $form);
$this->appendElementChildren(
$menuItem,
* @inheritDoc
* @since 3.2
*/
- protected function doCreateXmlElement(\DOMDocument $document, IFormDocument $form) {
+ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) {
$event = $document->createElement($this->tagName);
$this->appendElementChildren(
* @inheritDoc
* @since 3.2
*/
- protected function doCreateXmlElement(\DOMDocument $document, IFormDocument $form) {
- $option = parent::doCreateXmlElement($document, $form);
+ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) {
+ $option = parent::prepareXmlElement($document, $form);
switch ($this->entryType) {
case 'options':
* @inheritDoc
* @since 3.2
*/
- protected function doCreateXmlElement(\DOMDocument $document, IFormDocument $form) {
+ protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) {
$data = $form->getData()['data'];
$userProfileMenuItem = $document->createElement($this->tagName);