public function getTriggers($token)
    {
        $fmt = $this->getFormatter(false);

        if (!is_string($token) || strpos($token, ' ') === false) {
            throw new \Erebot\InvalidValueException($fmt->_('Invalid token'));
        }

        list($chan, $pos) = explode(' ', $token);

        if (!isset($this->triggers[$chan][$pos])) {
            throw new \Erebot\NotFoundException($fmt->_('No such triggers'));
        }

        return $this->triggers[$chan][$pos];
    }
public function getTriggers($token)
    {
        $fmt = $this->getFormatter(false);

        if (!is_string($token) || strpos($token, ' ') === false) {
            throw new \Erebot\InvalidValueException($fmt->_('Invalid token'));
        }

        list($chan, $pos) = explode(' ', $token);

        if (!isset($this->triggers[$chan][$pos])) {
            throw new \Erebot\NotFoundException($fmt->_('No such triggers'));
        }

        return $this->triggers[$chan][$pos];
    }
public function getTriggers ( $ token ) { $ fmt = $ this -> getFormatter ( false ) ; if ( ! is_string ( $ token ) || strpos ( $ token , ' ' ) === false ) { throw new \ Erebot \ InvalidValueException ( $ fmt -> _ ( 'Invalid token' ) ) ; } list ( $ chan , $ pos ) = explode ( ' ' , $ token ) ; if ( ! isset ( $ this -> triggers [ $ chan ] [ $ pos ] ) ) { throw new \ Erebot \ NotFoundException ( $ fmt -> _ ( 'No such triggers' ) ) ; } return $ this -> triggers [ $ chan ] [ $ pos ] ; }
Returns a list of all triggers
associated with the given key.

\param string $token
Some key associated with a series
of triggers.

\retval array
A list of all triggers associated
with the given key.
Returns a list of all triggers associated with the given key .