params statement). */ class getCCommentTab extends cbTabHandler { /** * Construnctor */ public function __construct() { $this->cbTabHandler(); } /** * Generates the HTML to display the user profile tab * * @param object tab reflecting the tab database entry * @param object mosUser reflecting the user being displayed * @param int 1 for front-end, 2 for back-end * * @return bool|mixed|string|void * @returns mixed : either string HTML for tab content, or false if ErrorMSG generated */ public function getDisplayTab($tab, $user, $ui) { $params = $this->params; $print = $params->get('printView', "0"); if ($print) { return true; } JLoader::discover('ccommentHelper', JPATH_ROOT . '/components/com_comment/helpers'); return ccommentHelperUtils::commentInit('com_comprofiler', $user); } }