$entryList->addEntry(
$this->getElementIdentifier($element),
// we skip the event here to avoid firing all of those events
- array_intersect_key($this->doGetElementData($element), $entryList->getKeys())
+ array_intersect_key($this->fetchElementData($element), $entryList->getKeys())
);
}
}
* @param bool $saveData is `true` if data is intended to be saved and otherwise `false`
* @return array
*/
- abstract protected function doGetElementData(\DOMElement $element, $saveData);
+ abstract protected function fetchElementData(\DOMElement $element, $saveData);
/**
* Extracts the PIP object data from the given XML element by calling
- * `doGetElementData` and firing an event.
+ * `fetchElementData` and firing an event.
*
* @param \DOMElement $element element whose data is returned
* @param bool $saveData is `true` if data is intended to be saved and otherwise `false`
* @return array
*/
protected function getElementData(\DOMElement $element, $saveData = false) {
- $elementData = $this->doGetElementData($element, $saveData);
+ $elementData = $this->fetchElementData($element, $saveData);
$data = [
'element' => $element,
$entryList->addEntry(
$this->getElementIdentifier($element),
// we skip the event here to avoid firing all of those events
- array_intersect_key($this->doGetElementData($element, false), $entryList->getKeys())
+ array_intersect_key($this->fetchElementData($element, false), $entryList->getKeys())
);
}
* @inheritDoc
* @since 3.2
*/
- protected function doGetElementData(\DOMElement $element, $saveData) {
+ protected function fetchElementData(\DOMElement $element, $saveData) {
$data = [
'packageID' => $this->installation->getPackage()->packageID,
'objectType' => $element->getElementsByTagName('objecttype')->item(0)->nodeValue
* @inheritDoc
* @since 3.2
*/
- protected function doGetElementData(\DOMElement $element, $saveData) {
- $data = parent::doGetElementData($element, $saveData);
+ protected function fetchElementData(\DOMElement $element, $saveData) {
+ $data = parent::fetchElementData($element, $saveData);
$icon = $element->getElementsByTagName('icon')->item(0);
if ($icon !== null) {
* @inheritDoc
* @since 3.2
*/
- protected function doGetElementData(\DOMElement $element, $saveData) {
+ protected function fetchElementData(\DOMElement $element, $saveData) {
$data = [
'className' => $element->getElementsByTagName('classname')->item(0)->nodeValue,
'packageID' => $this->installation->getPackage()->packageID,
* @inheritDoc
* @since 3.2
*/
- protected function doGetElementData(\DOMElement $element, $saveData) {
+ protected function fetchElementData(\DOMElement $element, $saveData) {
$data = [
'menuItem' => $element->getAttribute('name'),
'packageID' => $this->installation->getPackage()->packageID
* @inheritDoc
* @since 3.2
*/
- protected function doGetElementData(\DOMElement $element, $saveData) {
+ protected function fetchElementData(\DOMElement $element, $saveData) {
$data = [];
switch ($this->entryType) {
* @inheritDoc
* @since 3.2
*/
- protected function doGetElementData(\DOMElement $element, $saveData) {
+ protected function fetchElementData(\DOMElement $element, $saveData) {
$data = [
'attributes' => [],
'bbcodeTag' => $element->getAttribute('name'),
* @inheritDoc
* @since 3.2
*/
- protected function doGetElementData(\DOMElement $element, $saveData) {
+ protected function fetchElementData(\DOMElement $element, $saveData) {
$data = [
'boxType' => $element->getElementsByTagName('boxType')->item(0)->nodeValue,
'content' => [],
* @inheritDoc
* @since 3.2
*/
- protected function doGetElementData(\DOMElement $element, $saveData) {
+ protected function fetchElementData(\DOMElement $element, $saveData) {
$data = [
'actionClassName' => $element->getElementsByTagName('actionclassname')->item(0)->nodeValue,
'actionName' => $element->getAttribute('name'),
* @inheritDoc
* @since 3.2
*/
- protected function doGetElementData(\DOMElement $element, $saveData) {
+ protected function fetchElementData(\DOMElement $element, $saveData) {
return [
'objectName' => $element->getElementsByTagName('objectname')->item(0)->nodeValue,
'packageID' => $this->installation->getPackage()->packageID
* @inheritDoc
* @since 3.2
*/
- protected function doGetElementData(\DOMElement $element, $saveData) {
+ protected function fetchElementData(\DOMElement $element, $saveData) {
$data = [
'className' => $element->getElementsByTagName('classname')->item(0)->nodeValue,
'cronjobName' => $element->getAttribute('name'),
* @inheritDoc
* @since 3.2
*/
- protected function doGetElementData(\DOMElement $element, $saveData) {
+ protected function fetchElementData(\DOMElement $element, $saveData) {
$data = [
'eventClassName' => $element->getElementsByTagName('eventclassname')->item(0)->nodeValue,
'eventName' => StringUtil::normalizeCsv($element->getElementsByTagName('eventname')->item(0)->nodeValue),
* @inheritDoc
* @since 3.2
*/
- protected function doGetElementData(\DOMElement $element, $saveData) {
+ protected function fetchElementData(\DOMElement $element, $saveData) {
$data = [
'languageID' => LanguageFactory::getInstance()->getLanguageByCode($element->ownerDocument->documentElement->getAttribute('languagecode'))->languageID,
'languageItem' => $element->getAttribute('name'),
* @inheritDoc
* @since 3.2
*/
- protected function doGetElementData(\DOMElement $element, $saveData) {
+ protected function fetchElementData(\DOMElement $element, $saveData) {
$data = [
'name' => $element->getAttribute('name'),
'packageID' => $this->installation->getPackage()->packageID,
* @inheritDoc
* @since 3.2
*/
- protected function doGetElementData(\DOMElement $element, $saveData) {
+ protected function fetchElementData(\DOMElement $element, $saveData) {
$data = [
'identifier' => $element->getAttribute('identifier'),
'packageID' => $this->installation->getPackageID(),
* @inheritDoc
* @since 3.2
*/
- protected function doGetElementData(\DOMElement $element, $saveData) {
+ protected function fetchElementData(\DOMElement $element, $saveData) {
$data = [
'identifier' => $element->getAttribute('identifier'),
'packageID' => $this->installation->getPackageID(),
* @inheritDoc
* @since 3.2
*/
- protected function doGetElementData(\DOMElement $element, $saveData) {
+ protected function fetchElementData(\DOMElement $element, $saveData) {
$data = [
'definitionName' => $element->getElementsByTagName('name')->item(0)->nodeValue,
'packageID' => $this->installation->getPackage()->packageID
* @inheritDoc
* @since 3.2
*/
- protected function doGetElementData(\DOMElement $element, $saveData) {
+ protected function fetchElementData(\DOMElement $element, $saveData) {
$data = [
'definitionID' => $this->getDefinitionID($element->getElementsByTagName('definitionname')->item(0)->nodeValue),
'objectType' => $element->getElementsByTagName('name')->item(0)->nodeValue,
* @inheritDoc
* @since 3.2
*/
- protected function doGetElementData(\DOMElement $element, $saveData) {
- $data = parent::doGetElementData($element, $saveData);
+ protected function fetchElementData(\DOMElement $element, $saveData) {
+ $data = parent::fetchElementData($element, $saveData);
switch ($this->entryType) {
case 'options':
* @inheritDoc
* @since 3.2
*/
- protected function doGetElementData(\DOMElement $element, $saveData) {
+ protected function fetchElementData(\DOMElement $element, $saveData) {
return [
'className' => $element->nodeValue,
'pluginName' => $element->getAttribute('name'),
* @inheritDoc
* @since 3.2
*/
- protected function doGetElementData(\DOMElement $element, $saveData) {
+ protected function fetchElementData(\DOMElement $element, $saveData) {
$data = [
'identifier' => $element->getAttribute('identifier'),
'originIsSystem' => 1,
* @inheritDoc
* @since 3.2
*/
- protected function doGetElementData(\DOMElement $element, $saveData) {
+ protected function fetchElementData(\DOMElement $element, $saveData) {
$data = [
'packageID' => $this->installation->getPackage()->packageID,
'smileyCode' => $element->getAttribute('name'),
* @inheritDoc
* @since 3.2
*/
- protected function doGetElementData(\DOMElement $element, $saveData) {
+ protected function fetchElementData(\DOMElement $element, $saveData) {
$data = [
'environment' => $element->getElementsByTagName('environment')->item(0)->nodeValue,
'eventName' => $element->getElementsByTagName('eventname')->item(0)->nodeValue,
* @inheritDoc
* @since 3.2
*/
- protected function doGetElementData(\DOMElement $element, $saveData) {
- $data = parent::doGetElementData($element, $saveData);
+ protected function fetchElementData(\DOMElement $element, $saveData) {
+ $data = parent::fetchElementData($element, $saveData);
switch ($this->entryType) {
case 'options':
* @inheritDoc
* @since 3.2
*/
- protected function doGetElementData(\DOMElement $element, $saveData) {
- $data = parent::doGetElementData($element, $saveData);
+ protected function fetchElementData(\DOMElement $element, $saveData) {
+ $data = parent::fetchElementData($element, $saveData);
$className = $element->getElementsByTagName('classname')->item(0);
if ($className !== null) {
* @inheritDoc
* @since 3.2
*/
- protected function doGetElementData(\DOMElement $element, $saveData) {
+ protected function fetchElementData(\DOMElement $element, $saveData) {
$data = [
'className' => $element->getElementsByTagName('classname')->item(0)->nodeValue,
'eventName' => $element->getElementsByTagName('name')->item(0)->nodeValue,
* @inheritDoc
* @since 3.2
*/
- protected function doGetElementData(\DOMElement $element, $saveData) {
- $data = parent::doGetElementData($element, $saveData);
+ protected function fetchElementData(\DOMElement $element, $saveData) {
+ $data = parent::fetchElementData($element, $saveData);
switch ($this->entryType) {
case 'options':
* @inheritDoc
* @since 3.2
*/
- protected function doGetElementData(\DOMElement $element, $saveData) {
+ protected function fetchElementData(\DOMElement $element, $saveData) {
$data = [
'className' => $element->getElementsByTagName('classname')->item(0)->nodeValue,
'menuItem' => $element->getAttribute('name'),