neoncitylights/php-data-url

DataUrl

Tags
see
https://tools.ietf.org/html/rfc2397
license

MIT

Table of Contents

Properties

$data  : string
$mediaType  : MediaType

Methods

__construct()  : mixed
__toString()  : string
Returns a data URL compliant with RFC 2397.
getData()  : string
Gets the original, encoded base64 string.
getDecodedValue()  : string
Gets a decoded value of the base64 string.
getMediaType()  : MediaType
Gets the media type of the encoded base64 string.

Properties

$mediaType

private MediaType $mediaType

Methods

__construct()

public __construct(MediaType $mediaType, string $data) : mixed
Parameters
$mediaType : MediaType
$data : string

__toString()

Returns a data URL compliant with RFC 2397.

public __toString() : string
Return values
string

getData()

Gets the original, encoded base64 string.

public getData() : string
Return values
string

getDecodedValue()

Gets a decoded value of the base64 string.

public getDecodedValue() : string
Return values
string

getMediaType()

Gets the media type of the encoded base64 string.

public getMediaType() : MediaType
Return values
MediaType

        
On this page

Search results