PHP Class Horde_Url_Data, horde

Author: Michael Slusarz ([email protected])
Afficher le fichier Open project: horde/horde Class Usage Examples

Méthodes publiques

Свойство Type Description
$base64 boolean Should data be base64 encoded?
$data string Binary data.
$type string The MIME type.

Méthodes publiques

Méthode 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 méthode

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

__toString() public méthode

Output RFC 2397 compliant data string.
public __toString ( )

create() public static méthode

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 méthode

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

Property Details

$base64 public_oe property

Should data be base64 encoded?
public bool $base64
Résultat boolean

$data public_oe property

Binary data.
public string $data
Résultat string

$type public_oe property

The MIME type.
public string $type
Résultat string