Horde_Mime_Uudecode
in package
implements
Countable, IteratorAggregate
Class used to uudecode data.
Needed because PHP's built-in uudecode() method is broken.
Tags
Interfaces, Classes, Traits and Enums
- Countable
- IteratorAggregate
Table of Contents
- UUENCODE_REGEX = "/begin ([0-7]{3}) (.+)\r?\n(.+)\r?\nend/Us"
- $_data : array<string|int, mixed>
- Uudecode data.
- __construct() : mixed
- Scans $input for uuencoded data and converts it to unencoded data.
- count() : mixed
- getIterator() : mixed
- _uudecode() : string
- PHP 5's built-in convert_uudecode() is broken. Need this wrapper.
Constants
UUENCODE_REGEX
public
mixed
UUENCODE_REGEX
= "/begin ([0-7]{3}) (.+)\r?\n(.+)\r?\nend/Us"
Properties
$_data
Uudecode data.
protected
array<string|int, mixed>
$_data
= array()
A list of arrays, with each array corresponding to a file in the input and containing the following keys:
- data: (string) Unencoded data.
- name: (string) Filename.
- perms: (string) Octal permissions.
Methods
__construct()
Scans $input for uuencoded data and converts it to unencoded data.
public
__construct(string $input) : mixed
Parameters
- $input : string
-
The input data
Return values
mixed —count()
public
count() : mixed
Return values
mixed —getIterator()
public
getIterator() : mixed
Return values
mixed —_uudecode()
PHP 5's built-in convert_uudecode() is broken. Need this wrapper.
protected
_uudecode(string $input) : string
Parameters
- $input : string
-
UUencoded input.
Return values
string —Decoded string.