PHP Class Horde_Url_Data, horde

Author: Michael Slusarz ([email protected])
Show file Open project: horde/horde Class Usage Examples

Public Properties

Property Type Description
$base64 boolean Should data be base64 encoded?
$data string Binary data.
$type string The MIME type.

Public Methods

Method Description
__construct ( string $data = null ) Constructor.
__toString ( ) Output RFC 2397 compliant data string.
create ( string $type = null, string $data = null, boolean $base64 = true ) Create a new object from existing data.
isData ( $input ) : boolean Check input to see if it contains RFC 2397 data.

Method Details

__construct() public method

Constructor.
public __construct ( string $data = null )
$data string An RFC 2397 compliant data string.

__toString() public method

Output RFC 2397 compliant data string.
public __toString ( )

create() public static method

Create a new object from existing data.
public static create ( string $type = null, string $data = null, boolean $base64 = true )
$type string The MIME type of the data.
$data string The data.
$base64 boolean Should data be base64 encoded?

isData() public static method

Check input to see if it contains RFC 2397 data.
Since: 2.2.0
public static isData ( $input ) : boolean
return boolean True if the input contains RFC 2397 compliant data.

Property Details

$base64 public property

Should data be base64 encoded?
public bool $base64
return boolean

$data public property

Binary data.
public string $data
return string

$type public property

The MIME type.
public string $type
return string