Пример #1
0
 /**
  * Returns the node content as an associative array with fullcontent
  * @param	mixed	integer or array of integers=The id in the primary table
  * @param array permissions
  */
 public function getFullContent($nodes, $permissions = false)
 {
     if (empty($nodes)) {
         return array();
     }
     $results = parent::getFullContent($nodes, $permissions);
     return $this->addContentInfo($results);
 }
Пример #2
0
 public function getFullContent($nodeids, $permissions = false)
 {
     $result = parent::getFullContent($nodeids, $permissions);
     if ($result) {
         $forumOptions = vB::getDatastore()->getValue('bf_misc_forumoptions');
         foreach ($result as $key => $channel) {
             $options = array();
             foreach ($forumOptions as $name => $bitfield) {
                 $options[$name] = $channel['options'] & $bitfield ? 1 : 0;
             }
             $result[$key]['options'] = $options;
         }
     }
     return $result;
 }