From: Roland Häder Date: Wed, 2 Dec 2020 19:33:43 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=58242c2ba983a3073b260cf31c283cd54c29934f;p=hub.git Continued: - added missing trait(s) Signed-off-by: Roland Häder --- 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';