Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
ipb_topic.inc
1 <?php
18 require_once SQ_PACKAGES_PATH.'/ipb/ipb_forum/ipb_forum.inc';
19 
20 
32 class Ipb_Topic extends Ipb_Forum
33 {
34 
35 
43  function Ipb_Topic($ipbid=0, $data=Array())
44  {
45  $this->Ipb_Forum($ipbid, $data);
46 
47  if ($this->_prefix == 't') {
48  $this->vars['description']['type'] = 'text';
49  $this->vars['description']['value'] = 'IPB Topic';
50 
51  $this->vars['posts']['type'] = 'int';
52  $this->vars['posts']['value'] = $data['posts'] + 1;
53 
54  $this->vars['starter_name']['type'] = 'text';
55  $this->vars['starter_name']['value'] = $data['starter_name'];
56 
57  $this->vars['start_date']['type'] = 'text';
58  $value = date('g:i:s D j M Y', intval($data['start_date']));
59  $this->vars['start_date']['value'] = $value;
60 
61  $this->vars['last_poster_name']['type'] = 'text';
62  $this->vars['last_poster_name']['value'] = $data['last_poster_name'];
63 
64  $this->vars['last_post']['type'] = 'text';
65  $value = date('g:i:s D j M Y', intval($data['last_post']));
66  $this->vars['last_post']['value'] = $value;
67  }
68 
69  }//end constructor
70 
71 
72 }//end class
73 
74 ?>