// Init message data array
$this->messageDataElements = array(
XmlRequestNodeListAnswerTemplateEngine::REQUEST_DATA_SESSION_ID,
+ XmlRequestNodeListAnswerTemplateEngine::REQUEST_DATA_NODE_LIST,
);
// Init message-data->configuration translation array
protected function registerNodeByMessageData (array $messageData) {
// Check if searchData has entries
assert(count($this->searchData) > 0);
- self::createDebugInstance(__CLASS__)->debugOutput('messageData=' . print_r($messageData, true));
// Get a wrapper instance
$wrapperInstance = ObjectFactory::createObjectByConfiguredName('node_list_db_wrapper_class');
*/
class XmlRequestNodeListAnswerTemplateEngine extends BaseXmlTemplateEngine implements CompileableTemplate, Registerable {
// Constants for array elements
- const REQUEST_DATA_SESSION_ID = 'session-id';
+ const REQUEST_DATA_SESSION_ID = 'my-session-id';
+ const REQUEST_DATA_NODE_LIST = 'node-list';
/**
* Protected constructor
// Init sub-nodes array
$this->subNodes = array(
- XmlRequestNodeListTemplateEngine::REQUEST_DATA_SESSION_ID,
+ self::REQUEST_DATA_SESSION_ID,
+ self::REQUEST_DATA_NODE_LIST,
);
}
along with this program. If not, see <http://www.gnu.org/licenses/>
//-->
<request-node-list-answer>
+ <!--
+ My session id
+ //-->
+ <my-session-id>{?my_session_id?}</my-session-id>
+ <!--
+ List of all nodes (will be completed later)
+ //-->
+ <node-list />
</request-node-list-answer>