Class CFData

Description

Data Type of CFPropertyList Note: Binary data is base64-encoded.

Located in /CFType.php (line 279)

CFType
   |
   --CFData
Method Summary
CFData __construct ([string $value = null], [boolean $already_coded = false])
string getCodedValue ()
mixed getValue ()
void setValue ( $value)
The toBinary (CFBinaryPropertyList &$bplist)
DOMNode toXML ( $doc, [string $nodeName = ""])
Variables

Inherited Variables

Inherited from CFType

CFType::$value
Methods
Constructor __construct (line 285)

Create new Data CFType

  • access: public
CFData __construct ([string $value = null], [boolean $already_coded = false])
  • string $value: data to be contained by new object
  • boolean $already_coded: if true $value will not be base64-encoded, defaults to false

Redefinition of:
CFType::__construct()
Create new CFType.
getCodedValue (line 304)

Get base64 encoded data

  • return: The base64 encoded data value
  • access: public
string getCodedValue ()
getValue (line 312)

Get the base64-decoded CFType's value.

  • return: CFType's value
  • access: public
mixed getValue ()

Redefinition of:
CFType::getValue()
Get the CFType's value
setValue (line 295)

Set the CFType's value and base64-encode it.

Note: looks like base64_encode has troubles with UTF-8 encoded strings

  • access: public
void setValue ( $value)
  • $value

Redefinition of:
CFType::setValue()
Set the CFType's value
toBinary (line 331)

convert value to binary representation

  • return: offset in the object table
  • access: public
The toBinary (CFBinaryPropertyList &$bplist)

Redefinition of:
CFType::toBinary()
convert value to binary representation
toXML (line 322)

Get XML-Node.

  • return: <data>-Element
  • access: public
DOMNode toXML ( $doc, [string $nodeName = ""])
  • DOMDocument $doc: DOMDocument to create DOMNode in
  • string $nodeName: For compatibility reasons; just ignore it

Redefinition of:
CFType::toXML()
Get XML-Node.

Inherited Methods

Inherited From CFType

CFType::__construct()
CFType::getValue()
CFType::setValue()
CFType::toArray()
CFType::toBinary()
CFType::toXML()

Documentation generated on Fri, 01 Jan 2010 21:33:34 +0100 by phpDocumentor 1.4.1