Core Class
View Source on Trac ↗
Core Class
Sniffer
class Sniffer
// Constructor: function Object() { [native code] } Content-type sniffing
Methods 6 methods
| Method / Return | Description |
|---|---|
| __construct() void | Create an instance of the class with the input file
Parameters: $file: mixed |
| get_type() string | Get the Content-Type of the specified file |
| text_or_binary() string | Sniff text or binary |
| unknown() string | Sniff unknown |
| image() string | Sniff images |
| feed_or_html() string | Sniff HTML |
Properties
| Property / Type | Description |
|---|---|
| $file mixed public | No description available. |
Class Information
Source File
wp-includes/SimplePie/src/Content/Type/Sniffer.php
Advertisement