From 58242c2ba983a3073b260cf31c283cd54c29934f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 2 Dec 2020 20:33:43 +0100 Subject: [PATCH] Continued: - added missing trait(s) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../hub/classes/helper/class_BaseHubSystemHelper.php | 8 +++++++- .../class_XmlRequestNodeListAnswerTemplateEngine.php | 4 ++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/application/hub/classes/helper/class_BaseHubSystemHelper.php b/application/hub/classes/helper/class_BaseHubSystemHelper.php index 2bac436a9..1c2ac60e2 100644 --- a/application/hub/classes/helper/class_BaseHubSystemHelper.php +++ b/application/hub/classes/helper/class_BaseHubSystemHelper.php @@ -5,6 +5,9 @@ namespace Org\Shipsimu\Hub\Helper; // Import application-specific stuff use Org\Shipsimu\Hub\Generic\BaseHubSystem; +// Import framework stuff +use Org\Mxchange\CoreFramework\Traits\Template\CompileableTemplateTrait; + /** * A general hub helper class. This class does not extend BaseHelper. * @@ -28,10 +31,13 @@ use Org\Shipsimu\Hub\Generic\BaseHubSystem; * along with this program. If not, see . */ abstract class BaseHubSystemHelper extends BaseHubSystem implements HubHelper { + // Load traits + use CompileableTemplateTrait; + /** * Recipient id */ - private $recipientId = ''; + private $recipientId = 'invalid'; /** * Recipient type diff --git a/application/hub/classes/template/xml/answer/requests/class_XmlRequestNodeListAnswerTemplateEngine.php b/application/hub/classes/template/xml/answer/requests/class_XmlRequestNodeListAnswerTemplateEngine.php index b8168c28c..ae6307421 100644 --- a/application/hub/classes/template/xml/answer/requests/class_XmlRequestNodeListAnswerTemplateEngine.php +++ b/application/hub/classes/template/xml/answer/requests/class_XmlRequestNodeListAnswerTemplateEngine.php @@ -9,6 +9,7 @@ use Org\Shipsimu\Hub\Template\Engine\Xml\Network\Answer\BaseXmlAnswerTemplateEng use Org\Mxchange\CoreFramework\Factory\Template\XmlTemplateEngineFactory; use Org\Mxchange\CoreFramework\Registry\Registerable; use Org\Mxchange\CoreFramework\Template\Xml\CompileableXmlTemplate; +use Org\Mxchange\CoreFramework\Traits\Template\CompileableTemplateTrait; /** * A RequestNodeListAnswer template engine class for XML templates @@ -34,6 +35,9 @@ use Org\Mxchange\CoreFramework\Template\Xml\CompileableXmlTemplate; * along with this program. If not, see . */ class XmlRequestNodeListAnswerTemplateEngine extends BaseXmlAnswerTemplateEngine implements CompileableXmlTemplate, Registerable { + // Load traits + use CompileableTemplateTrait; + // Constants for array elements const REQUEST_DATA_SESSION_ID = 'session-id'; const REQUEST_DATA_NODE_LIST = 'node-list'; -- 2.39.5