code/libraries/joomlatools/library/http/message/message.php
public function getContentType()
    {
        if (empty($this->_content_type) && $this->_headers->has('Content-Type'))
        {
            $type = $this->_headers->get('Content-Type');

            //Strip parameters from content-type like "; charset=UTF-8"
            if (is_string($type))
            {
                if (preg_match('/^([^,\;]*)/', $type, $matches)) {
                    $type = $matches[1];
                }
            }

            $this->_content_type = $type;
        }

        return $this->_content_type;
    }
public function getContentType()
    {
        if (empty($this->_content_type) && $this->_headers->has('Content-Type'))
        {
            $type = $this->_headers->get('Content-Type');

            //Strip parameters from content-type like "; charset=UTF-8"
            if (is_string($type))
            {
                if (preg_match('/^([^,\;]*)/', $type, $matches)) {
                    $type = $matches[1];
                }
            }

            $this->_content_type = $type;
        }

        return $this->_content_type;
    }
public function getContentType ( ) { if ( empty ( $ this -> _content_type ) && $ this -> _headers -> has ( 'Content-Type' ) ) { $ type = $ this -> _headers -> get ( 'Content-Type' ) ; //Strip parameters from content-type like "; charset=UTF-8" if ( is_string ( $ type ) ) { if ( preg_match ( '/^([^,\;]*)/' , $ type , $ matches ) ) { $ type = $ matches [ 1 ] ; } } $ this -> _content_type = $ type ; } return $ this -> _content_type ; }
Retrieves the message content type

@link http://tools.ietf.org/html/rfc2616#section-14.17

@return string The content type
Retrieves the message content type