Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
ipb_root_forum_edit_fns.inc
1 <?php
17 require_once SQ_PACKAGES_PATH.'/ipb/ipb_forum/ipb_forum_edit_fns.inc';
18 
31 {
32 
33 
39  {
40  $this->Ipb_Forum_Edit_Fns();
41 
42  }//end constructor
43 
44 
55  function paintListOfForums(&$asset, &$o, $prefix)
56  {
57  $ipb_bridge =& $GLOBALS['SQ_SYSTEM']->am->getAsset($asset->_ipbid);
58  $ipb =& $ipb_bridge->getIpbConn();
59  $tmp = explode(':', $asset->id);
60  $forums = $ipb->getListOfForums($tmp[1]);
61 
62  if (empty($forums)) {
63  $o->openField(translate('list_of_root_forums'));
64  echo translate('no_forums_in_ipb');
65  $o->closeField();
66  } else {
67  $o->openField(translate('list_of_forums'));
68  ?>
69  <table class="sq-backend-table">
70  <tr>
71  <th style="width: 20%"><?php echo translate('name'); ?></th>
72  <th style="width: 50%"><?php echo translate('description'); ?></th>
73  <th style="width: 30%"><?php echo translate('asset'); ?></th>
74  </tr>
75  <?php
76  foreach ($forums as $forum) {
77  $data = $ipb->getForumInfo($ipb_bridge->id.':'.'f_'.$forum['id']);
78  ?>
79  <tr>
80  <td style="font-weight: bold;"><?php echo $data['name']; ?></td>
81  <td><?php echo $data['description']; ?></td>
82  <td><?php echo get_asset_tag_line($asset->_ipbid.':'.'r_'.$data['id']); ?></td>
83  </tr>
84  <?php
85  }
86  $o->closeField();
87  }
88  return FALSE;
89 
90  }//end paintListOfForums()
91 
92 
103  function processListOfForums(&$asset, &$o, $prefix)
104  {
105  return FALSE;
106 
107  }//end processListOfForums()
108 
109 
110 }//end class
111 
112 ?>