src/ShopBundle/objects/db/TShopArticle.class.php
protected function GetMessages($aMessageConsumerToCheck)
    {
        $sMessages = '';
        $oMsgManager = TCMSMessageManager::GetInstance();

        foreach ($aMessageConsumerToCheck as $sMessageConsumer) {
            if ($oMsgManager->ConsumerHasMessages($sMessageConsumer)) {
                $sMessages .= $oMsgManager->RenderMessages($sMessageConsumer);
            }
        }

        return $sMessages;
    }
protected function GetMessages($aMessageConsumerToCheck)
    {
        $sMessages = '';
        $oMsgManager = TCMSMessageManager::GetInstance();

        foreach ($aMessageConsumerToCheck as $sMessageConsumer) {
            if ($oMsgManager->ConsumerHasMessages($sMessageConsumer)) {
                $sMessages .= $oMsgManager->RenderMessages($sMessageConsumer);
            }
        }

        return $sMessages;
    }
protected function GetMessages ( $ aMessageConsumerToCheck ) { $ sMessages = '' ; $ oMsgManager = TCMSMessageManager :: GetInstance ( ) ; foreach ( $ aMessageConsumerToCheck as $ sMessageConsumer ) { if ( $ oMsgManager -> ConsumerHasMessages ( $ sMessageConsumer ) ) { $ sMessages .= $ oMsgManager -> RenderMessages ( $ sMessageConsumer ) ; } } return $ sMessages ; }
uses message manager to render messages and return them as string.

@param $aMessageConsumerToCheck

@return string
uses message manager to render messages and return them as string .