Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250530) (c39b7370636)
CFType Class Reference
Inheritance diagram for CFType:
CFArray CFBoolean CFData CFDate CFDictionary CFNumber CFString CFUid

Public Member Functions

 __construct ($value=null)
 Create new CFType.
 
 getValue ()
 Get the CFType's value.
 
 setValue ($value)
 Set the CFType's value.
 
 toArray ()
 Get CFType's value.
 
 toBinary (CFBinaryPropertyList &$bplist)
 convert value to binary representation
 
 toXML (DOMDocument $doc, $nodeName="")
 Get XML-Node.
 

Protected Attributes

array $value = null
 CFType nodes.
 

Constructor & Destructor Documentation

◆ __construct()

CFType::__construct ( $value = null)

Create new CFType.

Parameters
mixed$valueValue of CFType

Reimplemented in CFArray, and CFDictionary.

Member Function Documentation

◆ getValue()

CFType::getValue ( )

Get the CFType's value.

Return values
mixedCFType's value

Reimplemented in CFData.

◆ setValue()

CFType::setValue ( $value)

Set the CFType's value.

Return values
void

Reimplemented in CFArray, CFData, and CFDictionary.

◆ toArray()

CFType::toArray ( )

Get CFType's value.

Return values
mixedprimitive value @uses $value for retrieving primitive of CFType

Reimplemented in CFArray, and CFDictionary.

◆ toBinary()

CFType::toBinary ( CFBinaryPropertyList & $bplist)
abstract

convert value to binary representation

Parameters
CFBinaryPropertyListThe binary property list object
Return values
Theoffset in the object table

Reimplemented in CFArray, CFBoolean, CFData, CFDate, CFDictionary, CFNumber, CFString, and CFUid.

◆ toXML()

CFType::toXML ( DOMDocument $doc,
$nodeName = "" )

Get XML-Node.

Parameters
DOMDocument$docDOMDocument to create DOMNode in
string$nodeNameName of element to create
Return values
DOMNodeNode created based on CType @uses $value as nodeValue

Reimplemented in CFArray, CFBoolean, CFData, CFDate, CFDictionary, CFNumber, CFString, and CFUid.


The documentation for this class was generated from the following file: