Documentation

Horde_Mime_Uudecode
in package
implements Countable, IteratorAggregate

Class used to uudecode data.

Needed because PHP's built-in uudecode() method is broken.

Tags
author

Chuck Hagenbuch chuck@horde.org

author

Aidan Lister aidan@php.net

author

Michael Slusarz slusarz@horde.org

author

Michael Wallner mike@php.net

category

Horde

copyright

2009-2017 Horde LLC

copyright

2004-2007 Aidan Lister aidan@php.net, Arpad Ray arpad@php.net

license

http://www.horde.org/licenses/lgpl21 LGPL 2.1

since
2.5.0

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.

Search results