Пример #1
0
 public function getBareContent($nodeids)
 {
     $result = parent::getBareContent($nodeids);
     if ($result) {
         $forumOptions = vB::getDatastore()->getValue('bf_misc_forumoptions');
         $type = vB_Api_External::TYPE_RSS2;
         $rssinfo = vB_Library::instance('external')->getExternalDataForChannels(array_keys($result), $type);
         foreach ($result as $key => $channel) {
             $options = array();
             foreach ($forumOptions as $name => $bitfield) {
                 $options[$name] = $channel['options'] & $bitfield ? 1 : 0;
             }
             $result[$key]['options'] = $options;
             $result[$key]['rss_enabled'] = $rssinfo[$key][$type . '_enabled'];
             $result[$key]['rss_route'] = $rssinfo[$key][$type . '_route'];
         }
     }
     return $result;
 }