프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_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. |
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 |
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. |
protected _node ( DOMDocument $doc, DOMNode $node ) | ||
$doc | DOMDocument | Document node. |
$node | DOMNode | Node. |
protected _renderInline ( ) : array | ||
리턴 | array | See parent::render(). |
protected string $_phishCss | ||
리턴 | string |
protected bool $_phishWarn | ||
리턴 | boolean |
protected array $_tmp | ||
리턴 | array |