PHP Class Horde_Mime_Viewer_Syntaxhighlighter, horde

Copyright 2003-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Author: Chuck Hagenbuch ([email protected])
Inheritance: extends Horde_Mime_Viewer_Base
显示文件 Open project: horde/horde

Protected Properties

Property Type Description
$_capability array This driver's display capabilities.

Protected Methods

Method Description
_getLanguageOptions ( $language )
_languageToBrush ( $language )
_mimeTypeToLanguage ( string $type ) : string Attempts to determine what mode to use for the source-highlight program from a MIME type.
_render ( ) : array Return the full rendered version of the Horde_Mime_Part object.
_renderInline ( ) : array Return the rendered inline version of the Horde_Mime_Part object.

Method Details

_getLanguageOptions() protected method

protected _getLanguageOptions ( $language )

_languageToBrush() protected method

protected _languageToBrush ( $language )

_mimeTypeToLanguage() protected method

Attempts to determine what mode to use for the source-highlight program from a MIME type.
protected _mimeTypeToLanguage ( string $type ) : string
$type string The MIME type.
return string The mode to use.

_render() protected method

Return the full rendered version of the Horde_Mime_Part object.
protected _render ( ) : array
return array See parent::render().

_renderInline() protected method

Return the rendered inline version of the Horde_Mime_Part object.
protected _renderInline ( ) : array
return array See parent::render().

Property Details

$_capability protected_oe property

This driver's display capabilities.
protected array $_capability
return array