/** * */ public function getDate_Format($default = null) { if (version_compare(JVERSION, '1.6.0', 'ge')) { // Joomla! 1.6+ code here return parent::get('date_format_act', $default); } else { // Joomla! 1.5 code here return parent::get('date_format', $default); } }