\Horde_Url_Data

An object to handle Data URLs (RFC 2397).

Summary

Methods
Properties
Constants
create()
isData()
__construct()
__toString()
$base64
$data
$type
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$base64

$base64 : boolean

Should data be base64 encoded?

Type

boolean

$data

$data : string

Binary data.

Type

string

$type

$type : string

The MIME type.

Type

string

Methods

create()

create(string  $type = null, string  $data = null, boolean  $base64 = true) 

Create a new object from existing data.

Parameters

string $type

The MIME type of the data.

string $data

The data.

boolean $base64

Should data be base64 encoded?

isData()

isData(  $input) : boolean

Check input to see if it contains RFC 2397 data.

Parameters

$input

Returns

boolean —

True if the input contains RFC 2397 compliant data.

__construct()

__construct(string  $data = null) 

Constructor.

Parameters

string $data

An RFC 2397 compliant data string.

__toString()

__toString() 

Output RFC 2397 compliant data string.