Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
ipb_root_forum.inc
1 <?php
18 require_once SQ_PACKAGES_PATH.'/ipb/ipb_forum/ipb_forum.inc';
19 
20 
33 {
34 
35 
43  function Ipb_Root_Forum($ipbid=0, $data=Array())
44  {
45  $this->Ipb_Forum($ipbid, $data);
46 
47  // number of root forums
48  if ($ipbid != 0) {
49  $ipb_bridge =& $GLOBALS['SQ_SYSTEM']->am->getAsset($ipbid);
50  $ipb =& $ipb_bridge->getIpbConn();
51  $forums = $ipb->getListOfForums($data['id']);
52 
53  $this->vars['description']['type'] = 'text';
54  $this->vars['description']['value'] = 'IPB Root Forum';
55 
56  $this->vars['forums']['type'] = 'int';
57  $this->vars['forums']['value'] = count($forums);
58  }
59 
60  }//end constructor
61 
62 
63 }//end class
64 
65 ?>