◆ __construct()
CFData::__construct |
( |
| $value = null, |
|
|
| $already_coded = false ) |
Create new Data CFType.
- Parameters
-
string | $value | data to be contained by new object |
boolean | $already_coded | if true $value will not be base64-encoded, defaults to false |
◆ getCodedValue()
CFData::getCodedValue |
( |
| ) |
|
Get base64 encoded data.
- Return values
-
string | The base64 encoded data value |
◆ getValue()
Get the base64-decoded CFType's value.
- Return values
-
◆ setValue()
CFData::setValue |
( |
| $value | ) |
|
Set the CFType's value and base64-encode it.
Note: looks like base64_encode has troubles with UTF-8 encoded strings
- Return values
-
◆ toBinary()
convert value to binary representation
- Parameters
-
- Return values
-
The | offset in the object table |
◆ toXML()
CFData::toXML |
( |
DOMDocument | $doc, |
|
|
| $nodeName = "" ) |
Get XML-Node.
- Parameters
-
DOMDocument | $doc | DOMDocument to create DOMNode in |
string | $nodeName | For compatibility reasons; just ignore it |
- Return values
-
The documentation for this class was generated from the following file:
- lib/plist/classes/CFPropertyList/CFData.php