. * * Comments & Questions @ joris.veenhuis@aegee.org */ /** * Comments Service */ require_once(FILESYSTEMROOTPATH."jc/include/dao/CommentsDao.php"); require_once(FILESYSTEMROOTPATH."jc/include/classes/BBParse.php"); class CommentsService { private $CommentsDao; /** * Default constructor * * @param CommentsDao */ public function __construct(CommentsDao $CommentsDao) { $this->CommentsDao = $CommentsDao; } /** * Load comments by proposal ID * * @param string id of the proposal for which to load the comments * @return html table with comments */ public function loadByPID($proposal_id) { $comments = $this->CommentsDao->loadByPID($proposal_id); $ret = ''; if($comments) { $ret = "