* inside the message, the above method call will cause exceptions.
*/
foreach ($this->dataXmlNodes as $key => $dummy) {
- // Generate method name
- $methodName = 'read' . $this->convertToClassName($messageType) . 'Data';
-
// Call it
- $value = call_user_func(array($templateInstance, $methodName), $key);
+ $templateInstance->readXmlData($key);
/*
* If value is NULL, a variable hasn't been found. This could mean
parent::assignVariable($this->getStackerInstance()->getNamed('announcement'), $characters);
}
- /**
- * Read announcement variables by calling readVariable() with 'general' as
- * variable stack.
- *
- * @param $key Key to read from
- * @return $value Value from variable
- */
- public function readAnnouncementData ($key) {
- // Read the variable
- $value = parent::readVariable($key, 'general');
-
- // Return value
- return $value;
- }
-
/**
* Getter for cache file (FQFN)
*
parent::assignVariable($this->getStackerInstance()->getNamed('announcement_answer'), $characters);
}
- /**
- * Read announcement-answer variables by calling readVariable() with 'general' as
- * variable stack.
- *
- * @param $key Key to read from
- * @return $value Value from variable
- */
- public function readAnnouncementAnswerData ($key) {
- // Read the variable
- $value = parent::readVariable($key, 'general');
-
- // Return value
- return $value;
- }
-
/**
* Getter for cache file (FQFN)
*
return $this->subNodes;
}
+ /**
+ * Read XML variables by calling readVariable() with 'general' as
+ * variable stack.
+ *
+ * @param $key Key to read from
+ * @return $value Value from variable
+ */
+ public function readXmlData ($key) {
+ // Read the variable
+ $value = parent::readVariable($key, 'general');
+
+ // Return value
+ return $value;
+ }
+
/**
* Handles the template dependency for given node
*
parent::assignVariable($this->getStackerInstance()->getNamed('self_connect'), $characters);
}
- /**
- * Read self-connect variables by calling readVariable() with 'general' as
- * variable stack.
- *
- * @param $key Key to read from
- * @return $value Value from variable
- */
- public function readSelfConnectData ($key) {
- // Read the variable
- $value = parent::readVariable($key, 'general');
-
- // Return value
- return $value;
- }
-
/**
* Getter for cache file (FQFN)
*