|
static | get_charset () |
|
static | parse_message ($raw_body) |
|
static | decode_address_list ($input, $max=null, $decode=true, $fallback=null, $addronly=false) |
|
static | decode_header ($input, $fallback=null) |
|
static | decode_mime_string ($input, $fallback=null) |
|
static | decode ($input, $encoding='7bit') |
|
static | parse_headers ($headers) |
|
static | explode_header_string ($separator, $str, $remove_comments=false) |
|
static | unfold_flowed ($text, $mark=null) |
|
static | format_flowed ($text, $length=72, $charset=null) |
|
static | wordwrap ($string, $width=75, $break="\, $cut=false, $charset=null, $wrap_quoted=true) |
|
static | file_content_type ($path, $name, $failover='application/octet-stream', $is_stream=false, $skip_suffix=false) |
|
static | image_content_type ($data) |
|
static | fix_email ($email) |
|
|
const | WSC_CHARSET = 'UTF-8' |
|
Definición en la línea 15 del archivo WSCMime.php.
◆ __construct()
__construct |
( |
|
$default_charset = null | ) |
|
Constructor
- Parámetros
-
Definición en la línea 25 del archivo WSCMime.php.
◆ decode()
static decode |
( |
|
$input, |
|
|
|
$encoding = '7bit' |
|
) |
| |
|
static |
Decode a mime part
- Parámetros
-
string | $input | Input string |
string | $encoding | Part encoding |
- Devuelve
- string Decoded string
Definición en la línea 222 del archivo WSCMime.php.
◆ decode_address_list()
static decode_address_list |
( |
|
$input, |
|
|
|
$max = null , |
|
|
|
$decode = true , |
|
|
|
$fallback = null , |
|
|
|
$addronly = false |
|
) |
| |
|
static |
Split an address list into a structured array list
- Parámetros
-
string | $input | Input string |
int | $max | List only this number of addresses |
boolean | $decode | Decode address strings |
string | $fallback | Fallback charset if none specified |
boolean | $addronly | Return flat array with e-mail addresses only |
- Devuelve
- array Indexed list of addresses
Definición en la línea 83 del archivo WSCMime.php.
◆ decode_header()
static decode_header |
( |
|
$input, |
|
|
|
$fallback = null |
|
) |
| |
|
static |
Decode a message header value
- Parámetros
-
string | $input | Header value |
string | $fallback | Fallback charset if none specified |
- Devuelve
- string Decoded string
Definición en la línea 123 del archivo WSCMime.php.
◆ decode_mime_string()
static decode_mime_string |
( |
|
$input, |
|
|
|
$fallback = null |
|
) |
| |
|
static |
Decode a mime-encoded string to internal charset
- Parámetros
-
string | $input | Header value |
string | $fallback | Fallback charset if none specified |
- Devuelve
- string Decoded string
Definición en la línea 137 del archivo WSCMime.php.
◆ explode_header_string()
static explode_header_string |
( |
|
$separator, |
|
|
|
$str, |
|
|
|
$remove_comments = false |
|
) |
| |
|
static |
Explodes header (e.g. address-list) string into array of strings using specified separator characters with proper handling of quoted-strings and comments (RFC2822)
- Parámetros
-
string | $separator | String containing separator characters |
string | $str | Header string |
bool | $remove_comments | Enable to remove comments |
- Devuelve
- array Header items
Definición en la línea 334 del archivo WSCMime.php.
◆ file_content_type()
static file_content_type |
( |
|
$path, |
|
|
|
$name, |
|
|
|
$failover = 'application/octet-stream' , |
|
|
|
$is_stream = false , |
|
|
|
$skip_suffix = false |
|
) |
| |
|
static |
◆ fix_email()
static fix_email |
( |
|
$email | ) |
|
|
static |
Try to fix invalid email addresses
Definición en la línea 766 del archivo WSCMime.php.
◆ format_flowed()
static format_flowed |
( |
|
$text, |
|
|
|
$length = 72 , |
|
|
|
$charset = null |
|
) |
| |
|
static |
Wrap the given text to comply with RFC 2646
- Parámetros
-
string | $text | Text to wrap |
int | $length | Length |
string | $charset | Character encoding of $text |
- Devuelve
- string Wrapped text
Definición en la línea 473 del archivo WSCMime.php.
◆ get_charset()
Returns message/object character set name
- Devuelve
- string Characted set name
Definición en la línea 40 del archivo WSCMime.php.
◆ image_content_type()
static image_content_type |
( |
|
$data | ) |
|
|
static |
Detect image type of the given binary data by checking magic numbers.
- Parámetros
-
string | $data | Binary file content |
- Devuelve
- string Detected mime-type or jpeg as fallback
Definición en la línea 752 del archivo WSCMime.php.
◆ parse_headers()
static parse_headers |
( |
|
$headers | ) |
|
|
static |
Split RFC822 header string into an associative array
Definición en la línea 243 del archivo WSCMime.php.
◆ parse_message()
static parse_message |
( |
|
$raw_body | ) |
|
|
static |
Parse the given raw message source and return a structure of message_part.
It makes use of the WSCMimeParser library
- Parámetros
-
string | $raw_body | The message source |
- Devuelve
- object WSCMessagePart The message structure
Definición en la línea 60 del archivo WSCMime.php.
◆ unfold_flowed()
static unfold_flowed |
( |
|
$text, |
|
|
|
$mark = null |
|
) |
| |
|
static |
Interpret a format=flowed message body according to RFC 2646
- Parámetros
-
string | $text | Raw body formatted as flowed text |
string | $mark | Mark each flowed line with specified character |
- Devuelve
- string Interpreted text with unwrapped lines and stuffed space removed
Definición en la línea 401 del archivo WSCMime.php.
◆ wordwrap()
static wordwrap |
( |
|
$string, |
|
|
|
$width = 75 , |
|
|
|
$break = "\n" , |
|
|
|
$cut = false , |
|
|
|
$charset = null , |
|
|
|
$wrap_quoted = true |
|
) |
| |
|
static |
Improved wordwrap function with multibyte support. The code is based on Zend_Text_MultiByte::wordWrap().
- Parámetros
-
string | $string | Text to wrap |
int | $width | Line width |
string | $break | Line separator |
bool | $cut | Enable to cut word |
string | $charset | Charset of $string |
bool | $wrap_quoted | When enabled quoted lines will not be wrapped |
- Devuelve
- string Text
Definición en la línea 511 del archivo WSCMime.php.
La documentación para esta clase fue generada a partir del siguiente fichero:
- C:/portableApps/UniServerZ/www/wscomun/include/WSCMIME/WSCMime.php