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.