Rename `doCreateXmlElement` to `prepareXmlElement`
authorMatthias Schmidt <gravatronics@live.com>
Sun, 25 Nov 2018 08:06:03 +0000 (09:06 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 25 Nov 2018 08:06:03 +0000 (09:06 +0100)
See  #2763

28 files changed:
wcfsetup/install/files/lib/system/devtools/pip/TXmlGuiPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/ACLOptionPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/ACPMenuPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/ACPSearchProviderPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/AbstractMenuPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/AbstractOptionPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/BBCodePackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/BoxPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/ClipboardActionPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/CoreObjectPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/CronjobPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/EventListenerPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/LanguagePackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/MediaProviderPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/MenuItemPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/MenuPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/ObjectTypeDefinitionPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/ObjectTypePackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/OptionPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/PIPPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/PagePackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/SmileyPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/TemplateListenerPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/UserGroupOptionPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/UserMenuPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/UserNotificationEventPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/UserOptionPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/UserProfileMenuPackageInstallationPlugin.class.php

index 67c018d0ba4beb30684a81caf81617cd0f6f261e..a1c464a62bc87aff8d59577b14567053dc76414f 100644 (file)
@@ -127,20 +127,20 @@ trait TXmlGuiPackageInstallationPlugin {
         * @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,
@@ -148,7 +148,7 @@ trait TXmlGuiPackageInstallationPlugin {
                        '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.');
index 5aa0fb85526ef707a72ebf1b1153991f3d43f29e..52ac209d583e7aa2e1de55cc9b4ae1e4d7c9fa8c 100644 (file)
@@ -581,7 +581,7 @@ class ACLOptionPackageInstallationPlugin extends AbstractOptionPackageInstallati
         * @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) {
index 54f048a3001bd0c91f68ca091da5c0090b45a7e0..96035f0727bd2ee20145ddb95fd3cef35b31590b 100644 (file)
@@ -146,8 +146,8 @@ class ACPMenuPackageInstallationPlugin extends AbstractMenuPackageInstallationPl
         * @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);
                
index 882b52c9d59aca01c03990a62823e31792811250..9c3762a968e61111a1f14ebefd01fefa0d74e9b2 100644 (file)
@@ -205,7 +205,7 @@ class ACPSearchProviderPackageInstallationPlugin extends AbstractXMLPackageInsta
         * @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);
index 367127e7fd30d29b1e3d0ee34e66e046bccfaaaf..123bebfcc6172fa995584fccf37263483edad119 100644 (file)
@@ -455,7 +455,7 @@ abstract class AbstractMenuPackageInstallationPlugin extends AbstractXMLPackageI
         * @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);
index ff422f55f1ef8de922cf4f38f660b0d311db77cf..7da4df461f271d52fecb5b04d37850b7e7e6242c 100644 (file)
@@ -969,7 +969,7 @@ abstract class AbstractOptionPackageInstallationPlugin extends AbstractXMLPackag
         * @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) {
index e5e606c34e74d3e3c1a3c5e6fb9ceb6f7ecc16af..d9265f2bf1ce66d7fbf036cb8629c81bcd46cb1b 100644 (file)
@@ -515,7 +515,7 @@ class BBCodePackageInstallationPlugin extends AbstractXMLPackageInstallationPlug
         * @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);
index bc09e7c5cecd2ddabd157b3b6ad2dc5f8a4650ba..71809de7e52ada3449f5b1d4982a6e1aeb81ece6 100644 (file)
@@ -774,7 +774,7 @@ class BoxPackageInstallationPlugin extends AbstractXMLPackageInstallationPlugin
         * @inheritDoc
         * @since       3.2
         */
-       protected function doCreateXmlElement(\DOMDocument $document, IFormDocument $form) {
+       protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) {
                $formData = $form->getData();
                $data = $formData['data'];
                
index 3480ca0be281a4cb821710feef8f3fcbdd7e4942..a9bbd5a6db4ff9ca375d07f7873922421ed98b7c 100644 (file)
@@ -306,7 +306,7 @@ class ClipboardActionPackageInstallationPlugin extends AbstractXMLPackageInstall
         * @inheritDoc
         * @since       3.2
         */
-       protected function doCreateXmlElement(\DOMDocument $document, IFormDocument $form) {
+       protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) {
                $formData = $form->getData();
                $data = $formData['data'];
                
index 9a45fb230d921a7b5121185943219659d7055601..d0ac593ba6a3aea5e30a965af5c14820a80d5a13 100644 (file)
@@ -161,7 +161,7 @@ class CoreObjectPackageInstallationPlugin extends AbstractXMLPackageInstallation
         * @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);
index 41b5ac279e74c073cc22c76e08fe2d61a038e71e..fdd993bab12ba37d8312b00ed9605f933cc2afd7 100644 (file)
@@ -366,7 +366,7 @@ class CronjobPackageInstallationPlugin extends AbstractXMLPackageInstallationPlu
         * @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'];
                
index c1da54d24dee868a72d156f87d7ff4f4c917ac31..01fdbcbfa98eecb8e29835fab826799e03f42372 100644 (file)
@@ -352,7 +352,7 @@ class EventListenerPackageInstallationPlugin extends AbstractXMLPackageInstallat
         * @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);
index 1837bc08c5e56a69ddd2956eaaf3c98bc2f50d7c..dabc6df0dffde31f94b1dd639fb0c15d8ad79850 100644 (file)
@@ -731,7 +731,7 @@ XML;
         * @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');
index e004373af9b0a9f1fccc9662cefa40c80c79b9ab..16145a99d322eff21135795ccc59f689273c8c1c 100644 (file)
@@ -251,7 +251,7 @@ class MediaProviderPackageInstallationPlugin extends AbstractXMLPackageInstallat
         * @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);
index 17859d9ff77f0ec8411de34646a841b167c11ac3..f29e281c153cb46c70f6787e07e984d336b5c6a2 100644 (file)
@@ -534,7 +534,7 @@ class MenuItemPackageInstallationPlugin extends AbstractXMLPackageInstallationPl
         * @inheritDoc
         * @since       3.2
         */
-       protected function doCreateXmlElement(\DOMDocument $document, IFormDocument $form) {
+       protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) {
                $formData = $form->getData();
                $data = $formData['data'];
                
index 406537c43737bde68f6494bef945cd5acb8119ce..61cccbde4cd1338b52596faea27ab1e33e36a403 100644 (file)
@@ -522,7 +522,7 @@ class MenuPackageInstallationPlugin extends AbstractXMLPackageInstallationPlugin
         * @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') {
index 9eb84104171ecaf47badcf955ba0b144bd00ab0f..6d412dc37312d6ffc8bf6900124a805f53a92120 100644 (file)
@@ -185,7 +185,7 @@ class ObjectTypeDefinitionPackageInstallationPlugin extends AbstractXMLPackageIn
         * @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(
index dfd8a80e1174e8c4ec24e5227ac967207a39f2e2..7ce661da7e697f20ad6a0c5319912be3cc17223b 100644 (file)
@@ -775,7 +775,7 @@ XML;
         * @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;
                
index e9d977deecfe569e6f058ccb94a79a9b2ed0ec25..85c7f366c1e3229207a48fadc5d235870c3f7fbc 100644 (file)
@@ -307,8 +307,8 @@ class OptionPackageInstallationPlugin extends AbstractOptionPackageInstallationP
         * @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':
index beb0457899ea52e2b8c6cf1c21eed752e48d0418..6c64aa4a6e52e1bb5f82465f2842d957194c7721 100644 (file)
@@ -179,7 +179,7 @@ class PIPPackageInstallationPlugin extends AbstractXMLPackageInstallationPlugin
         * @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']);
index 56376feeef9f190f96f09eba1bddb0960e2a7259..a8b6746c6dce6e9580b49268cb516358e3b01b1d 100644 (file)
@@ -779,7 +779,7 @@ class PagePackageInstallationPlugin extends AbstractXMLPackageInstallationPlugin
         * @inheritDoc
         * @since       3.2
         */
-       protected function doCreateXmlElement(\DOMDocument $document, IFormDocument $form) {
+       protected function prepareXmlElement(\DOMDocument $document, IFormDocument $form) {
                $formData = $form->getData();
                $data = $formData['data'];
                
index 453a8c11a968f14a2f562999ade25437cf658526..199226d3666bd9fbf22fd66e9bfa44165f62679c 100644 (file)
@@ -286,7 +286,7 @@ class SmileyPackageInstallationPlugin extends AbstractXMLPackageInstallationPlug
         * @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);
index e753d9829ef90bb07ae8ed6c804f2f1db3696a55..9d9e412f60379df345f2851f026761d48aa62230 100644 (file)
@@ -487,7 +487,7 @@ class TemplateListenerPackageInstallationPlugin extends AbstractXMLPackageInstal
         * @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);
index 0632b16b8b7c1cc5c5fd5b887f05ab9b83430ae9..8b19d9e3f73e5f3a362d670dfab2f570059031d8 100644 (file)
@@ -338,8 +338,8 @@ class UserGroupOptionPackageInstallationPlugin extends AbstractOptionPackageInst
         * @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':
index 3b0f05c4041263d1da9ad3fa3ae3c473eab307a7..9b649b373efbc2b74edec4d9be2a747185e44b67 100644 (file)
@@ -152,8 +152,8 @@ class UserMenuPackageInstallationPlugin extends AbstractMenuPackageInstallationP
         * @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,
index 2a3ee6dfa85eba7713b0f73d99814800dd1a4772..7106ad4d36cd09bf777cee2ecb15d1ccb17844b7 100644 (file)
@@ -363,7 +363,7 @@ class UserNotificationEventPackageInstallationPlugin extends AbstractXMLPackageI
         * @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(
index aff2dc364623e5487a062a0915aeff2237ec5366..1c9b3df7e9b0ac3fa77a32753bbf8ae6d1d8670f 100644 (file)
@@ -417,8 +417,8 @@ class UserOptionPackageInstallationPlugin extends AbstractOptionPackageInstallat
         * @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':
index 5fcab5f996cd9be80fe8dcda6fcab672086f7d66..f358e3c32b53178fec08526e4dc8acc9c384076d 100644 (file)
@@ -235,7 +235,7 @@ class UserProfileMenuPackageInstallationPlugin extends AbstractXMLPackageInstall
         * @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);