// Can it be validated?
if ((strlen($data) % 4) != 0) {
// Length modulo 4 must be zero, else it is an invalid Base64 message
- throw new Base64EncodingModuloException(array($this, $data), self::EXCEPTION_BASE64_ENCODING_NOT_MODULO_4);
+ throw new Base64EncodingModuloException(array($this, $data), BaseHubSystem::EXCEPTION_BASE64_ENCODING_NOT_MODULO_4);
} elseif (!$this->isBase64Encoded($data)) {
// Is not a valid Base64-encoded message
- throw new Base64EncodingBadException(array($this, $data), self::EXCEPTION_BASE64_BAD_ENCODING);
+ throw new Base64EncodingBadException(array($this, $data), BaseHubSystem::EXCEPTION_BASE64_BAD_ENCODING);
} else {
// Decode the data with BASE64-encoding
$data = base64_decode($data);
* Main nodes in the XML tree
*/
private $mainNodes = array(
- 'node-request-node-list'
+ 'node-request-node-list',
+ 'accepted-object-types'
);
/**
$this->getStackerInstance()->pushNamed('node_request_node_list', 'node-request-node-list');
}
+ /**
+ * Starts the accepted-object-types
+ *
+ * @return void
+ */
+ private function startAcceptedObjectTypes () {
+ // Push the node name on the stacker
+ $this->getStackerInstance()->pushNamed('node_request_node_list', 'accepted-object-types');
+ }
+
+ /**
+ * Finishes the accepted-object-types
+ *
+ * @return void
+ */
+ private function finishAcceptedObjectTypes () {
+ // Pop the last entry
+ $this->getStackerInstance()->popNamed('node_request_node_list');
+ }
+
/**
* Finishes the node-request-node-list
*