src/Common/Controller/Base.php
public static function populateUserFeedback(array &$aData)
    {
        //  Set User Feedback alerts for the views
        $oSession          = Factory::service('Session', 'nails/module-auth');
        $oUserFeedback     = Factory::service('UserFeedback');
        $aData['error']    = $oUserFeedback->get('error') ?: $oSession->getFlashData('error');
        $aData['negative'] = $oUserFeedback->get('negative') ?: $oSession->getFlashData('negative');
        $aData['success']  = $oUserFeedback->get('success') ?: $oSession->getFlashData('success');
        $aData['positive'] = $oUserFeedback->get('positive') ?: $oSession->getFlashData('positive');
        $aData['info']     = $oUserFeedback->get('info') ?: $oSession->getFlashData('info');
        $aData['warning']  = $oUserFeedback->get('message') ?: $oSession->getFlashData('warning');

        //  @deprecated
        $aData['message'] = $oUserFeedback->get('message') ?: $oSession->getFlashData('message');
        $aData['notice']  = $oUserFeedback->get('notice') ?: $oSession->getFlashData('notice');
    }
public static function populateUserFeedback(array &$aData)
    {
        //  Set User Feedback alerts for the views
        $oSession          = Factory::service('Session', 'nails/module-auth');
        $oUserFeedback     = Factory::service('UserFeedback');
        $aData['error']    = $oUserFeedback->get('error') ?: $oSession->getFlashData('error');
        $aData['negative'] = $oUserFeedback->get('negative') ?: $oSession->getFlashData('negative');
        $aData['success']  = $oUserFeedback->get('success') ?: $oSession->getFlashData('success');
        $aData['positive'] = $oUserFeedback->get('positive') ?: $oSession->getFlashData('positive');
        $aData['info']     = $oUserFeedback->get('info') ?: $oSession->getFlashData('info');
        $aData['warning']  = $oUserFeedback->get('message') ?: $oSession->getFlashData('warning');

        //  @deprecated
        $aData['message'] = $oUserFeedback->get('message') ?: $oSession->getFlashData('message');
        $aData['notice']  = $oUserFeedback->get('notice') ?: $oSession->getFlashData('notice');
    }
public static function populateUserFeedback ( array & $ aData ) { //  Set User Feedback alerts for the views $ oSession = Factory :: service ( 'Session' , 'nails/module-auth' ) ; $ oUserFeedback = Factory :: service ( 'UserFeedback' ) ; $ aData [ 'error' ] = $ oUserFeedback -> get ( 'error' ) ? : $ oSession -> getFlashData ( 'error' ) ; $ aData [ 'negative' ] = $ oUserFeedback -> get ( 'negative' ) ? : $ oSession -> getFlashData ( 'negative' ) ; $ aData [ 'success' ] = $ oUserFeedback -> get ( 'success' ) ? : $ oSession -> getFlashData ( 'success' ) ; $ aData [ 'positive' ] = $ oUserFeedback -> get ( 'positive' ) ? : $ oSession -> getFlashData ( 'positive' ) ; $ aData [ 'info' ] = $ oUserFeedback -> get ( 'info' ) ? : $ oSession -> getFlashData ( 'info' ) ; $ aData [ 'warning' ] = $ oUserFeedback -> get ( 'message' ) ? : $ oSession -> getFlashData ( 'warning' ) ; //  @deprecated $ aData [ 'message' ] = $ oUserFeedback -> get ( 'message' ) ? : $ oSession -> getFlashData ( 'message' ) ; $ aData [ 'notice' ] = $ oUserFeedback -> get ( 'notice' ) ? : $ oSession -> getFlashData ( 'notice' ) ; }
Populates an array from the UserFeedback and session classes

@param array $aData The array to populate
Populates an array from the UserFeedback and session classes