PHP 클래스 Horde_Mime_Viewer_Html, horde

저자: Anil Madhavapeddy ([email protected])
저자: Jon Parise ([email protected])
저자: Michael Slusarz ([email protected])
상속: extends Horde_Mime_Viewer_Base
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_capability array This driver's display capabilities.
$_phishCss string The CSS used to display the phishing warning.
$_phishWarn boolean Phishing status of last call to _phishingCheck().
$_tmp array Temp array for storing data when parsing the HTML document.

공개 메소드들

메소드 설명
__construct ( Horde_Mime_Part $part, array $conf = [] ) Constructor.

보호된 메소드들

메소드 설명
_cleanHTML ( string $data, array $options = [] ) : Horde_Domhtml Filters active content, dereferences external links, detects phishing, etc.
_node ( DOMDocument $doc, DOMNode $node ) Process DOM node.
_phishingCheck ( string $href, string $text ) : boolean Check for phishing exploits.
_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.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Horde_Mime_Part $part, array $conf = [] )
$part Horde_Mime_Part
$conf array Configuration: - browser: (Horde_Browser) A browser object. - dns: (Net_DNS2_Resolver) A DNS resolver object; used in phishing analysis (@since 2.1.0). - external_callback: (callback) A callback function that a href URL is passed through. The function must take the original URL as the first parameter. DEFAULT: No callback

_cleanHTML() 보호된 메소드

Filters active content, dereferences external links, detects phishing, etc.
protected _cleanHTML ( string $data, array $options = [] ) : Horde_Domhtml
$data string The HTML data.
$options array Additional options: - charset: (string) The charset of $data. DEFAULT: The base part charset. - inline: (boolean) Are we viewing inline? DEFAULT: false - noprefetch: (boolean) Disable DNS prefetching? DEFAULT: false - phishing: (boolean) Do phishing highlighting even if not viewing inline. DEFAULT: false.
리턴 Horde_Domhtml The cleaned HTML data.

_node() 보호된 메소드

Process DOM node.
protected _node ( DOMDocument $doc, DOMNode $node )
$doc DOMDocument Document node.
$node DOMNode Node.

_phishingCheck() 보호된 메소드

Check for phishing exploits.
protected _phishingCheck ( string $href, string $text ) : boolean
$href string The HREF value.
$text string The text value of the link.
리턴 boolean True if phishing is detected.

_render() 보호된 메소드

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

_renderInline() 보호된 메소드

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

프로퍼티 상세

$_capability 보호되어 있는 프로퍼티

This driver's display capabilities.
protected array $_capability
리턴 array

$_phishCss 보호되어 있는 프로퍼티

The CSS used to display the phishing warning.
protected string $_phishCss
리턴 string

$_phishWarn 보호되어 있는 프로퍼티

Phishing status of last call to _phishingCheck().
protected bool $_phishWarn
리턴 boolean

$_tmp 보호되어 있는 프로퍼티

Temp array for storing data when parsing the HTML document.
protected array $_tmp
리턴 array