gconfig = aliroComponentConfiguration::getInstance('com_glossary'); $this->interface = cmsapiInterface::getInstance($this->cname); } protected function show ($string) { return (!function_exists('version_compare') OR version_compare(PHP_VERSION, '5.2.3') < 0) ? htmlspecialchars($string, ENT_QUOTES, _CMSAPI_CHARSET) : htmlspecialchars($string, ENT_QUOTES, _CMSAPI_CHARSET, true); } protected function showInDiv ($string) { if ($string) return <<{$this->show($string)} IN_DIV; } protected function showHTMLInDiv ($string) { if ($string) return <<{$this->showHTML($string)} IN_DIV; } protected function showHTML ($string) { $ampencode = '/(&(?!(#[0-9]{1,5};))(?!([0-9a-zA-Z]{1,10};)))/'; return preg_replace($ampencode, '&', $string); } }