AdminPageFramework_Form___SubmitNotice::hasNotice PHP Метод

hasNotice() публичный Метод

public hasNotice ( $sType = '' )
    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;
    }