| // +---------------------------------------------------------------------------+ // $Id: ManagerTemplate.html,v 1.2 2005/04/17 02:15:02 demian Exp $ /** * Type your class description here ... * * @package comment * @author Matti Tahvonen */ require_once SGL_ENT_DIR . '/Comment.php'; class Comment extends DataObjects_Comment { /** array of childs, if tree built */ var $aChildren; function getSubjectAsHtmlSnippet() { $html = "
  • comment_id}\">{$this->subject} From: "; if ($this->usr_id > 0) { $html .= ''.$this->guestname.''; } else { $html .= $this->guestname; } $html .= " ({$this->timestamp}) "; $html .= $this->getChildTreeAsHtmlSnippet(); $html .= "
  • "; return $html; } function getChildTreeAsHtmlSnippet() { if (is_array($this->aChildren) && count($this->aChildren > 0)) { $html = ""; } return $html; } } ?>