public function isTemplateConnected($nb_template) : bool
    {
        $retval = false;

        if (is_numeric($nb_template_id = nb_getMixedValue($nb_template, NABU_MESSAGING_TEMPLATE_FIELD_ID))) {
            $this->getTemplateConnections();
            $retval = $this->nb_messaging_template_service_list->containsKey($nb_template_id);
        }

        return $retval;
    }
public function isTemplateConnected($nb_template) : bool
    {
        $retval = false;

        if (is_numeric($nb_template_id = nb_getMixedValue($nb_template, NABU_MESSAGING_TEMPLATE_FIELD_ID))) {
            $this->getTemplateConnections();
            $retval = $this->nb_messaging_template_service_list->containsKey($nb_template_id);
        }

        return $retval;
    }
public function isTemplateConnected ( $ nb_template ) : bool { $ retval = false ; if ( is_numeric ( $ nb_template_id = nb_getMixedValue ( $ nb_template , NABU_MESSAGING_TEMPLATE_FIELD_ID ) ) ) { $ this -> getTemplateConnections ( ) ; $ retval = $ this -> nb_messaging_template_service_list -> containsKey ( $ nb_template_id ) ; } return $ retval ; }
Checks if a Template is connected to this Service.
@param mixed $nb_template A Messaging Template instance, a CNabuDataObject containing a field named
nb_messaging_template_id, or a valid Id.
@return bool Returns true if $nb_template is connected or false elsewhere.
Checks if a Template is connected to this Service .