public function hasNotice($sType = '')
{
if (!$sType) {
return (bool) count(self::$_aNotices);
}
foreach (self::$_aNotices as $_aNotice) {
$_sClassAttribute = $this->getElement($_aNotice, array('aAttributes', 'class'), '');
if ($_sClassAttribute === $sType) {
return true;
}
}
return false;
}