public function getChanTriggers($channel)
    {
        if (!isset($this->triggers[$channel])) {
            $fmt = $this->getFormatter(false);
            throw new \Erebot\NotFoundException(
                $fmt->_(
                    'No triggers found for channel "<var name="chan"/>"',
                    array('chan' => $channel)
                )
            );
        }

        return $this->triggers[$channel];
    }
public function getChanTriggers($channel)
    {
        if (!isset($this->triggers[$channel])) {
            $fmt = $this->getFormatter(false);
            throw new \Erebot\NotFoundException(
                $fmt->_(
                    'No triggers found for channel "<var name="chan"/>"',
                    array('chan' => $channel)
                )
            );
        }

        return $this->triggers[$channel];
    }
public function getChanTriggers ( $ channel ) { if ( ! isset ( $ this -> triggers [ $ channel ] ) ) { $ fmt = $ this -> getFormatter ( false ) ; throw new \ Erebot \ NotFoundException ( $ fmt -> _ ( 'No triggers found for channel "<var name="chan"/>"' , array ( 'chan' => $ channel ) ) ) ; } return $ this -> triggers [ $ channel ] ; }
Returns a list of all triggers
registered for a given channel.

\param string $channel
Either the name of a specific IRC channel
to return only those triggers that were
specifically registered for use in that channel,
or the constant Erebot::Module::TriggerRegistry::MATCH_ANY
to return triggers that were registered globally.

\retval array
A list of all triggers registered
for the given IRC channel.
Returns a list of all triggers registered for a given channel .