protected function get_message_with_additional_content($processorname, $messagetype) {
        $message = $this->$messagetype;
        if (isset($this->additionalcontent[$processorname]['*'])) {
            // Content that needs to be added to all format.
            $pattern = $this->additionalcontent[$processorname]['*'];
            $message = empty($pattern['header']) ? $message : $pattern['header'] . $message;
            $message = empty($pattern['footer']) ? $message : $message . $pattern['footer'];
        }

        if (isset($this->additionalcontent[$processorname][$messagetype])) {
            // Content that needs to be added to the specific given format.
            $pattern = $this->additionalcontent[$processorname][$messagetype];
            $message = empty($pattern['header']) ? $message : $pattern['header'] . $message;
            $message = empty($pattern['footer']) ? $message : $message . $pattern['footer'];
        }

        return $message;
    }
protected function get_message_with_additional_content($processorname, $messagetype) {
        $message = $this->$messagetype;
        if (isset($this->additionalcontent[$processorname]['*'])) {
            // Content that needs to be added to all format.
            $pattern = $this->additionalcontent[$processorname]['*'];
            $message = empty($pattern['header']) ? $message : $pattern['header'] . $message;
            $message = empty($pattern['footer']) ? $message : $message . $pattern['footer'];
        }

        if (isset($this->additionalcontent[$processorname][$messagetype])) {
            // Content that needs to be added to the specific given format.
            $pattern = $this->additionalcontent[$processorname][$messagetype];
            $message = empty($pattern['header']) ? $message : $pattern['header'] . $message;
            $message = empty($pattern['footer']) ? $message : $message . $pattern['footer'];
        }

        return $message;
    }
protected function get_message_with_additional_content ( $ processorname , $ messagetype ) { $ message = $ this -> $ messagetype ; if ( isset ( $ this -> additionalcontent [ $ processorname ] [ '*' ] ) ) { // Content that needs to be added to all format. $ pattern = $ this -> additionalcontent [ $ processorname ] [ '*' ] ; $ message = empty ( $ pattern [ 'header' ] ) ? $ message : $ pattern [ 'header' ] . $ message ; $ message = empty ( $ pattern [ 'footer' ] ) ? $ message : $ message . $ pattern [ 'footer' ] ; } if ( isset ( $ this -> additionalcontent [ $ processorname ] [ $ messagetype ] ) ) { // Content that needs to be added to the specific given format. $ pattern = $ this -> additionalcontent [ $ processorname ] [ $ messagetype ] ; $ message = empty ( $ pattern [ 'header' ] ) ? $ message : $ pattern [ 'header' ] . $ message ; $ message = empty ( $ pattern [ 'footer' ] ) ? $ message : $ message . $ pattern [ 'footer' ] ; } return $ message ; }
Helper method used to get message content added with processor specific content.

@param string $processorname Name of the processor.
@param string $messagetype one of 'fullmessagehtml', 'fullmessage', 'smallmessage'.

@return mixed|string
Helper method used to get message content added with processor specific content .