Beispiel #1
0
function check_filter($topic_filter)
{
    try {
        echo "Checking \"{$topic_filter}\" ... ";
        Utility::CheckTopicFilter($topic_filter);
        echo "PASS";
    } catch (Exception $e) {
        echo "FAILED " . $e->getMessage();
    }
    echo "\n";
}
Beispiel #2
0
 public function addTopic($topic_filter, $qos_max)
 {
     Utility::CheckTopicFilter($topic_filter);
     Utility::CheckQoS($qos_max);
     $this->topics[$topic_filter] = $qos_max;
 }
Beispiel #3
0
 public function addTopic($topic_filter)
 {
     Utility::CheckTopicFilter($topic_filter);
     $this->topics[] = $topic_filter;
 }