Ejemplo n.º 1
0
 public static function containsAbbo(array $abbos, Dog_ForumAbbo $abbo)
 {
     foreach ($abbos as $abb) {
         $abb instanceof Dog_ForumAbbo;
         if ($abb->getForumID() === $abbo->getForumID()) {
             return true;
         }
     }
     return false;
 }
Ejemplo n.º 2
0
 private function onBoardServerChannelTimer(array $entries, Dog_Forum $board, Dog_Server $server, Dog_Channel $channel)
 {
     if ('' === ($boardstring = Dog_Conf_Mod_Chan::getConf($this->getName(), $channel->getID(), 'boards', ''))) {
         return;
     }
     $boardstr = explode(';', $boardstring);
     foreach ($boardstr as $boardst) {
         $abbo = new Dog_ForumAbbo($boardst);
         foreach ($entries as $entry) {
             $entry instanceof Dog_ForumEntry;
             if ($abbo->matches($board, $entry)) {
                 $this->sendAbbo($board, $channel, $entry);
             }
         }
     }
 }