public function notifyConditions($type, $condValues = array()) {
        if (!is_array($condValues)) {
            $condValues = array($condValues);
        }

        $context = new \Orion\Context\ContextFactory();
        $context->put("type", $type);
        $context->put("condValues", $condValues);

        $this->_notifyConditions[] = $context->get();
        return $this;
    }
public function notifyConditions($type, $condValues = array()) {
        if (!is_array($condValues)) {
            $condValues = array($condValues);
        }

        $context = new \Orion\Context\ContextFactory();
        $context->put("type", $type);
        $context->put("condValues", $condValues);

        $this->_notifyConditions[] = $context->get();
        return $this;
    }
public function notifyConditions ( $ type , $ condValues = array ( ) ) { if ( ! is_array ( $ condValues ) ) { $ condValues = array ( $ condValues ) ; } $ context = new \ Orion \ Context \ ContextFactory ( ) ; $ context -> put ( "type" , $ type ) ; $ context -> put ( "condValues" , $ condValues ) ; $ this -> _notifyConditions [ ] = $ context -> get ( ) ; return $ this ; }
Build notifyCondition object

@param   string $type ONTIMEINTERVAL | ONCHANGE (!ONVALUE not supported yet)
When ONTIMEINTERVAL use time as conditional value(ISO 8601 format)
EX: PT10S - 10 of interval

When ONCHANGE use a attribute name to track changes only at this attribute
an empty  means all attributes

@param  array $condValues insert is Parttern attribute
Build notifyCondition object