Moodle PHP Documentation 4.1
Moodle 4.1.18+ (Build: 20250530) (7e19a2a6401)
CFNumber Class Reference

Number Type of CFPropertyList Property Lists. More...

Inheritance diagram for CFNumber:
CFType

Public Member Functions

 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.
 

Detailed Description

Member Function Documentation

◆ getValue()

CFType::getValue ( )
inherited

Get the CFType's value.

Return values
mixedCFType's value

Reimplemented in CFData.

◆ setValue()

CFType::setValue ( $value)
inherited

Set the CFType's value.

Return values
void

Reimplemented in CFArray, CFData, and CFDictionary.

◆ toArray()

CFType::toArray ( )
inherited

Get CFType's value.

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

Reimplemented in CFArray, and CFDictionary.

◆ toBinary()

CFNumber::toBinary ( CFBinaryPropertyList & $bplist)

convert value to binary representation

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

Reimplemented from CFType.

◆ toXML()

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

Get XML-Node.

Returns <real> if $value is a float, <integer> if $value is an integer.

Parameters
DOMDocument$docDOMDocument to create DOMNode in
string$nodeNameFor compatibility reasons; just ignore it
Return values
DOMNode<real> or <integer>-Element

Reimplemented from CFType.


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