Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
CFPropertyList Class Reference
Inheritance diagram for CFPropertyList:
CFBinaryPropertyList

Public Member Functions

 __construct ($file=null, $format=self::FORMAT_AUTO)
 Create new CFPropertyList.
 
 __get ($key)
 Generic getter (magic)
 
 add (CFType $value=null)
 Add CFType to collection.
 
 arrayToBinary ($val)
 Convert array to binary format and add it to the object table.
 
 boolToBinary ($val)
 Convert a bool value to binary and add it to the object table.
 
 current ()
 Get Iterator's current CFType identified by $iteratorPosition @externalurl http://php.net/manual/en/iterator.current.php.
 
 dataToBinary ($val)
 Convert data value to binary format and add it to the object table.
 
 dateToBinary ($val)
 Convert date value (apple format) to binary and adds it to the object table.
 
 del ($key)
 Remove CFType from collection.
 
 dictToBinary ($val)
 Convert dictionary to binary format and add it to the object table.
 
 get ($key)
 Get CFType from collection.
 
 getValue ($cftype=false)
 Get first (and only) child, or complete collection.
 
 key ()
 Get Iterator's current key identified by $iteratorPosition @externalurl http://php.net/manual/en/iterator.key.php.
 
 load ($file=null, $format=null)
 Load a plist file.
 
 loadBinary ($file=null)
 Load an binary PropertyList.
 
 loadBinaryStream ($stream)
 Load an binary PropertyList.
 
 loadXML ($file=null)
 Load an XML PropertyList.
 
 loadXMLStream ($stream)
 Load an XML PropertyList.
 
 next ()
 Increment $iteratorPosition to address next {.
 
 numToBinary ($value)
 Converts a numeric value to binary and adds it to the object table.
 
 parse ($str=null, $format=null)
 Parse a plist string.
 
 parseBinary ($content=null)
 parse a binary plist string
 
 parseBinaryString ()
 Parse a binary plist string.
 
 purge ()
 Empty the collection.
 
 readBinary ($file)
 Read a binary plist file.
 
 readBinaryObject ()
 Read an object type byte, decode it and delegate to the correct reader function.
 
 readBinaryObjectAt ($pos)
 Read an object type byte at position $pos, decode it and delegate to the correct reader function.
 
 readBinaryStream ($stream)
 Read a binary plist stream.
 
 rewind ()
 Rewind $iteratorPosition to first position (being 0) @externalurl http://php.net/manual/en/iterator.rewind.php.
 
 save ($file=null, $format=null, $formatted_xml=false)
 Convert CFPropertyList to XML or binary and save to file.
 
 saveBinary ($file)
 Convert CFPropertyList to binary format (bplist00) and save to file.
 
 saveXML ($file, $formatted=false)
 Convert CFPropertyList to XML and save to file.
 
 stringToBinary ($val)
 Uniques and transforms a string value to binary format and adds it to the object table.
 
 toArray ()
 Get PropertyList as array.
 
 toBinary ()
 Convert CFPropertyList to binary format; since we have to count our objects we simply unique CFDictionary and CFArray.
 
 toXML ($formatted=false)
 Convert CFPropertyList to XML.
 
 uidToBinary ($value)
 
 valid ()
 Test if $iteratorPosition addresses a valid element of $value @externalurl http://php.net/manual/en/iterator.valid.php.
 

Static Public Member Functions

static bytesInt ($int)
 Calculate the byte needed for a „normal” integer value.
 
static bytesNeeded ($count_objects)
 Calculate the bytes needed to save the number of objects.
 
static bytesSizeInt ($int)
 calculate the bytes needed for a size integer value
 
static charsetStrlen ($string, $charset="UTF-8")
 Count characters considering character set Trying to use MBString, Iconv - in that particular order.
 
static convertCharset ($string, $fromCharset, $toCharset='UTF-8')
 Convert the given string from one charset to another.
 
static guess ($value, $options=array())
 Create CFType-structure from guessing the data-types.
 
static intBytes ($int)
 Code an integer to byte representation.
 
static packItWithSize ($nbytes, $int)
 „pack” a value (i.e.
 
static typeBytes ($type, $type_len)
 Code an type byte, consisting of the type marker and the length of the type.
 
static unpackWithSize ($nbytes, $buff)
 „unpack” multiple values of the specified size (i.e.
 

Public Attributes

integer const FORMAT_AUTO = 0
 Format constant for automatic format recognizing.
 
integer const FORMAT_BINARY = 1
 Format constant for binary format.
 
integer const FORMAT_XML = 2
 Format constant for xml format.
 

Protected Member Functions

 getLibxmlErrors ()
 
 import (DOMNode $node, $parent)
 Convert a DOMNode into a CFType.
 
 intToBinary ($value)
 Codes an integer to binary format.
 
 readBinaryArray ($length)
 Read an array value, including contained objects.
 
 readBinaryData ($length)
 Read a data value.
 
 readBinaryDate ($length)
 Read a date value.
 
 readBinaryDict ($length)
 Read a dictionary value, including contained objects.
 
 readBinaryInt ($length)
 Read an integer value.
 
 readBinaryNullType ($length)
 Read a „null type” (filler byte, true, false, 0 byte)
 
 readBinaryReal ($length)
 Read a real value.
 
 readBinaryString ($length)
 Read a string value, usually coded as utf8.
 
 readBinaryUnicodeString ($length)
 Read a unicode string value, coded as UTF-16BE.
 
 realToBinary ($val)
 Codes a real value to binary format.
 
 uniqueAndCountValues ($value)
 Count number of objects and create a unique table for strings.
 

Static Protected Member Functions

static binaryStrlen ($val)
 Counts the number of bytes the string will have when coded; utf-16be if non-ascii characters are present.
 
static make64Int ($hi, $lo)
 Create an 64 bit integer using bcmath or gmp.
 

Protected Attributes

string $content = null
 Content of the plist (unparsed string)
 
integer $countObjects = 0
 Number of objects in file.
 
integer $detectedFormat = null
 Detected format of PropertyList.
 
string $file = null
 Path of PropertyList.
 
integer $format = null
 Path of PropertyList.
 
integer $intSize = 0
 The length of all ints in file (byte length)
 
array $iteratorKeys = null
 List of Keys for numerical iterator access
 
integer $iteratorPosition = 0
 Position of iterator
 
integer $miscSize = 0
 The length of misc objects (i.e.
 
integer $objectRefs = 0
 Number of object references in file (needed to calculate reference byte length)
 
 $objectRefSize = 0
 The size of object references.
 
 $objectTable = array()
 Table containing all objects in the file.
 
 $offsets = array()
 The „offsets” (i.e.
 
integer $pos = 0
 position in the (unparsed) string
 
integer $stringSize = 0
 The length of all strings in the file (byte length, not character length)
 
array $uniqueTable = array()
 Table containing uniqued objects.
 
array $value = array()
 CFType nodes.
 
integer $writtenObjectCount = 0
 Number of objects written during save phase; needed to calculate the size of the object table.
 

Static Protected Attributes

static array $types
 List of NodeNames to ClassNames for resolving plist-files.
 

Constructor & Destructor Documentation

◆ __construct()

CFPropertyList::__construct ( $file = null,
$format = self::FORMAT_AUTO )

Create new CFPropertyList.

If a path to a PropertyList is specified, it is loaded automatically.

Parameters
string$filePath of PropertyList
integer$formathe format of the property list, see FORMAT_XML, FORMAT_BINARY and FORMAT_AUTO, defaults to FORMAT_AUTO
Exceptions
IOExceptionif file could not be read by load() @uses $file for storing the current file, if specified @uses load() for loading the plist-file

Member Function Documentation

◆ __get()

CFPropertyList::__get ( $key)

Generic getter (magic)

Parameters
integer$keyKey of CFType to retrieve from collection
Return values
CFTypeCFType found at $key, null else
Author
Sean Coates sean@.nosp@m.php..nosp@m.net @externalurl http://php.net/oop5.overloading

◆ add()

CFPropertyList::add ( CFType $value = null)

Add CFType to collection.

Parameters
CFType$valueCFType to add to collection
Return values
void@uses $value for adding $value

◆ arrayToBinary()

CFBinaryPropertyList::arrayToBinary ( $val)
inherited

Convert array to binary format and add it to the object table.

Parameters
CFArray$valThe array to convert
Return values
integerThe position in the object table

◆ binaryStrlen()

static CFBinaryPropertyList::binaryStrlen ( $val)
staticprotectedinherited

Counts the number of bytes the string will have when coded; utf-16be if non-ascii characters are present.

Parameters
string$valThe string value
Return values
integerThe length of the coded string in bytes

◆ boolToBinary()

CFBinaryPropertyList::boolToBinary ( $val)
inherited

Convert a bool value to binary and add it to the object table.

Parameters
bool$valThe boolean value
Return values
integerThe position in the object table

◆ bytesInt()

static CFBinaryPropertyList::bytesInt ( $int)
staticinherited

Calculate the byte needed for a „normal” integer value.

Parameters
integer$intThe integer value
Return values
integerThe number of bytes needed + 1 (because of the „marker byte”)

◆ bytesNeeded()

static CFBinaryPropertyList::bytesNeeded ( $count_objects)
staticinherited

Calculate the bytes needed to save the number of objects.

Parameters
integer$count_objectsThe number of objects
Return values
integerThe number of bytes

◆ bytesSizeInt()

static CFBinaryPropertyList::bytesSizeInt ( $int)
staticinherited

calculate the bytes needed for a size integer value

Parameters
integer$intThe integer value to calculate
Return values
integerThe number of bytes needed

◆ charsetStrlen()

static CFBinaryPropertyList::charsetStrlen ( $string,
$charset = "UTF-8" )
staticinherited

Count characters considering character set Trying to use MBString, Iconv - in that particular order.

Parameters
string$stringthe string to convert
string$charsetthe charset the given string is currently encoded in
Return values
integerThe number of characters in that string
Exceptions
PListExceptionon neither MBString, Iconv being available

◆ convertCharset()

static CFBinaryPropertyList::convertCharset ( $string,
$fromCharset,
$toCharset = 'UTF-8' )
staticinherited

Convert the given string from one charset to another.

Trying to use MBString, Iconv, Recode - in that particular order.

Parameters
string$stringthe string to convert
string$fromCharsetthe charset the given string is currently encoded in
string$toCharsetthe charset to convert to, defaults to UTF-8
Return values
stringthe converted string
Exceptions
PListExceptionon neither MBString, Iconv, Recode being available

◆ current()

CFPropertyList::current ( )

Get Iterator's current CFType identified by $iteratorPosition @externalurl http://php.net/manual/en/iterator.current.php.

Return values
mixedcurrent Item @uses $iteratorPosition identify current key @uses $iteratorKeys identify current value

◆ dataToBinary()

CFBinaryPropertyList::dataToBinary ( $val)
inherited

Convert data value to binary format and add it to the object table.

Parameters
string$valThe data value
Return values
integerThe position in the object table

◆ dateToBinary()

CFBinaryPropertyList::dateToBinary ( $val)
inherited

Convert date value (apple format) to binary and adds it to the object table.

Parameters
integer$valueThe date value
Return values
integerThe position of the coded value in the object table

◆ del()

CFPropertyList::del ( $key)

Remove CFType from collection.

Parameters
integer$keyKey of CFType to removes from collection
Return values
CFTyperemoved CFType, null else @uses $value for removing CFType of $key

◆ dictToBinary()

CFBinaryPropertyList::dictToBinary ( $val)
inherited

Convert dictionary to binary format and add it to the object table.

Parameters
CFDictionary$valThe dict to convert
Return values
integerThe position in the object table

◆ get()

CFPropertyList::get ( $key)

Get CFType from collection.

Parameters
integer$keyKey of CFType to retrieve from collection
Return values
CFTypeCFType found at $key, null else @uses $value for retrieving CFType of $key

◆ getValue()

CFPropertyList::getValue ( $cftype = false)

Get first (and only) child, or complete collection.

Parameters
boolean$cftypeif set to true returned value will be CFArray instead of an array in case of a collection
Return values
CFType|arrayCFType or list of CFTypes known to the PropertyList @uses $value for retrieving CFTypes

◆ guess()

static CFPropertyList::guess ( $value,
$options = array() )
static

Create CFType-structure from guessing the data-types.

The functionality has been moved to the more flexible CFTypeDetector facility.

Parameters
mixed$valueValue to convert to CFType
array$optionsConfiguration for casting values [autoDictionary, suppressExceptions, objectToArrayMethod, castNumericStrings]
Return values
CFTypeCFType based on guessed type @uses CFTypeDetector for actual type detection
Deprecated

◆ import()

CFPropertyList::import ( DOMNode $node,
$parent )
protected

Convert a DOMNode into a CFType.

Parameters
DOMNode$nodeNode to import children of
CFDictionary | CFArray | CFPropertyList$parent
Return values
void

◆ intBytes()

static CFBinaryPropertyList::intBytes ( $int)
staticinherited

Code an integer to byte representation.

Parameters
integer$intThe integer value
Return values
stringThe packed byte value

◆ intToBinary()

CFBinaryPropertyList::intToBinary ( $value)
protectedinherited

Codes an integer to binary format.

Parameters
integer$valueThe integer value
Return values
stringthe coded integer

◆ key()

CFPropertyList::key ( )

Get Iterator's current key identified by $iteratorPosition @externalurl http://php.net/manual/en/iterator.key.php.

Return values
mixedkey of the current Item @uses $iteratorPosition identify current key @uses $iteratorKeys identify current value

◆ load()

CFPropertyList::load ( $file = null,
$format = null )

Load a plist file.

Load and import a plist file.

Parameters
string$filePath of PropertyList, defaults to $file
integer$formatThe format of the property list, see FORMAT_XML, FORMAT_BINARY and FORMAT_AUTO, defaults to $format
Return values
void
Exceptions
PListExceptionif file format version is not 00
IOExceptionif file could not be read
DOMExceptionif plist file could not be parsed properly @uses $file if argument $file was not specified @uses $value reset to empty array @uses import() for importing the values

◆ loadBinary()

CFPropertyList::loadBinary ( $file = null)

Load an binary PropertyList.

Parameters
string$filePath of PropertyList, defaults to $file
Return values
void
Exceptions
IOExceptionif file could not be read
PListExceptionif binary plist-file could not be read properly @uses load() to actually load the file

◆ loadBinaryStream()

CFPropertyList::loadBinaryStream ( $stream)

Load an binary PropertyList.

Parameters
stream$streamStream containing the PropertyList
Return values
void
Exceptions
IOExceptionif file could not be read
PListExceptionif binary plist-file could not be read properly @uses parse() to actually load the file

◆ loadXML()

CFPropertyList::loadXML ( $file = null)

Load an XML PropertyList.

Parameters
string$filePath of PropertyList, defaults to $file
Return values
void
Exceptions
IOExceptionif file could not be read
DOMExceptionif XML-file could not be read properly @uses load() to actually load the file

◆ loadXMLStream()

CFPropertyList::loadXMLStream ( $stream)

Load an XML PropertyList.

Parameters
resource$streamA stream containing the xml document.
Return values
void
Exceptions
IOExceptionif stream could not be read
DOMExceptionif XML-stream could not be read properly

◆ make64Int()

static CFBinaryPropertyList::make64Int ( $hi,
$lo )
staticprotectedinherited

Create an 64 bit integer using bcmath or gmp.

Parameters
int$hiThe higher word
int$loThe lower word
Return values
mixedThe integer (as int if possible, as string if not possible)
Exceptions
PListExceptionif neither gmp nor bc available

◆ next()

CFPropertyList::next ( )

Increment $iteratorPosition to address next {.

See also
CFType} @externalurl http://php.net/manual/en/iterator.next.php
Return values
void@uses $iteratorPosition increment by 1

◆ numToBinary()

CFBinaryPropertyList::numToBinary ( $value)
inherited

Converts a numeric value to binary and adds it to the object table.

Parameters
numeric$valueThe numeric value
Return values
integerThe position in the object table

◆ packItWithSize()

static CFBinaryPropertyList::packItWithSize ( $nbytes,
$int )
staticinherited

„pack” a value (i.e.

write the binary representation as big endian to a string) with the specified size

Parameters
integer$nbytesThe number of bytes to pack
integer$intThe integer value to pack
Return values
stringThe packed value as string

◆ parse()

CFPropertyList::parse ( $str = null,
$format = null )

Parse a plist string.

Parse and import a plist string.

Parameters
string$strString containing the PropertyList, defaults to $content
integer$formatThe format of the property list, see FORMAT_XML, FORMAT_BINARY and FORMAT_AUTO, defaults to $format
Return values
void
Exceptions
PListExceptionif file format version is not 00
IOExceptionif file could not be read
DOMExceptionif plist file could not be parsed properly @uses $content if argument $str was not specified @uses $value reset to empty array @uses import() for importing the values

◆ parseBinary()

CFBinaryPropertyList::parseBinary ( $content = null)
inherited

parse a binary plist string

Parameters
string$contentThe stream to read, defaults to ->content
Return values
void
Exceptions
IOExceptionif read error occurs

◆ parseBinaryString()

CFBinaryPropertyList::parseBinaryString ( )
inherited

Parse a binary plist string.

Return values
void
Exceptions
IOExceptionif read error occurs

◆ purge()

CFPropertyList::purge ( )

Empty the collection.

Return values
arraythe removed CFTypes @uses $value for removing CFType of $key

◆ readBinary()

CFBinaryPropertyList::readBinary ( $file)
inherited

Read a binary plist file.

Parameters
string$fileThe file to read
Return values
void
Exceptions
IOExceptionif read error occurs

◆ readBinaryArray()

CFBinaryPropertyList::readBinaryArray ( $length)
protectedinherited

Read an array value, including contained objects.

Parameters
integer$lengthThe number of contained objects
Return values
CFArrayThe array value, including the objects
Exceptions
IOExceptionif read error occurs

◆ readBinaryData()

CFBinaryPropertyList::readBinaryData ( $length)
protectedinherited

Read a data value.

Parameters
integer$lengthThe length (in bytes) of the integer value, coded as „set bit $length to 1”
Return values
CFDataThe data value
Exceptions
IOExceptionif read error occurs

◆ readBinaryDate()

CFBinaryPropertyList::readBinaryDate ( $length)
protectedinherited

Read a date value.

Parameters
integer$lengthThe length (in bytes) of the integer value, coded as „set bit $length to 1”
Return values
CFDateThe date value
Exceptions
PListExceptionif date val is invalid
IOExceptionif read error occurs

◆ readBinaryDict()

CFBinaryPropertyList::readBinaryDict ( $length)
protectedinherited

Read a dictionary value, including contained objects.

Parameters
integer$lengthThe number of contained objects
Return values
CFDictionaryThe dictionary value, including the objects
Exceptions
IOExceptionif read error occurs

◆ readBinaryInt()

CFBinaryPropertyList::readBinaryInt ( $length)
protectedinherited

Read an integer value.

Parameters
integer$lengthThe length (in bytes) of the integer value, coded as „set bit $length to 1”
Return values
CFNumberThe integer value
Exceptions
PListExceptionif integer val is invalid
IOExceptionif read error occurs @uses make64Int() to overcome PHP's big integer problems

◆ readBinaryNullType()

CFBinaryPropertyList::readBinaryNullType ( $length)
protectedinherited

Read a „null type” (filler byte, true, false, 0 byte)

Parameters
$lengthThe byte itself
Return values
thebyte value (e.g. CFBoolean(true), CFBoolean(false), 0 or 15)
Exceptions
PListExceptionon encountering an unknown null type

◆ readBinaryObject()

CFBinaryPropertyList::readBinaryObject ( )
inherited

Read an object type byte, decode it and delegate to the correct reader function.

Return values
mixedThe value of the delegate reader, so any of the CFType subclasses
Exceptions
IOExceptionif read error occurs

◆ readBinaryObjectAt()

CFBinaryPropertyList::readBinaryObjectAt ( $pos)
inherited

Read an object type byte at position $pos, decode it and delegate to the correct reader function.

Parameters
integer$posThe table position in the offsets table
Return values
mixedThe value of the delegate reader, so any of the CFType subclasses

◆ readBinaryReal()

CFBinaryPropertyList::readBinaryReal ( $length)
protectedinherited

Read a real value.

Parameters
integer$lengthThe length (in bytes) of the integer value, coded as „set bit $length to 1”
Return values
CFNumberThe real value
Exceptions
PListExceptionif real val is invalid
IOExceptionif read error occurs

◆ readBinaryStream()

CFBinaryPropertyList::readBinaryStream ( $stream)
inherited

Read a binary plist stream.

Parameters
resource$streamThe stream to read
Return values
void
Exceptions
IOExceptionif read error occurs

◆ readBinaryString()

CFBinaryPropertyList::readBinaryString ( $length)
protectedinherited

Read a string value, usually coded as utf8.

Parameters
integer$lengthThe length (in bytes) of the string value
Return values
CFStringThe string value, utf8 encoded
Exceptions
IOExceptionif read error occurs

◆ readBinaryUnicodeString()

CFBinaryPropertyList::readBinaryUnicodeString ( $length)
protectedinherited

Read a unicode string value, coded as UTF-16BE.

Parameters
integer$lengthThe length (in bytes) of the string value
Return values
CFStringThe string value, utf8 encoded
Exceptions
IOExceptionif read error occurs

◆ realToBinary()

CFBinaryPropertyList::realToBinary ( $val)
protectedinherited

Codes a real value to binary format.

Parameters
float$valThe real value
Return values
stringThe coded real

◆ rewind()

CFPropertyList::rewind ( )

Rewind $iteratorPosition to first position (being 0) @externalurl http://php.net/manual/en/iterator.rewind.php.

Return values
void@uses $iteratorPosition set to 0 @uses $iteratorKeys store keys of $value

◆ save()

CFPropertyList::save ( $file = null,
$format = null,
$formatted_xml = false )

Convert CFPropertyList to XML or binary and save to file.

Parameters
string$filePath of PropertyList, defaults to $file
string$formatFormat of PropertyList, defaults to $format
bool$formatted_xmlPrint XML plist formatted (i.e. with newlines and whitespace indention) if true; defaults to false
Return values
void
Exceptions
IOExceptionif file could not be read
PListExceptionif evaluated $format is neither FORMAT_XML nor FORMAL_BINARY @uses $file if $file was not specified @uses $format if $format was not specified

◆ saveBinary()

CFPropertyList::saveBinary ( $file)

Convert CFPropertyList to binary format (bplist00) and save to file.

Parameters
string$filePath of PropertyList, defaults to $file
Return values
void
Exceptions
IOExceptionif file could not be read @uses $file if $file was not specified

◆ saveXML()

CFPropertyList::saveXML ( $file,
$formatted = false )

Convert CFPropertyList to XML and save to file.

Parameters
string$filePath of PropertyList, defaults to $file
bool$formattedPrint plist formatted (i.e. with newlines and whitespace indention) if true; defaults to false
Return values
void
Exceptions
IOExceptionif file could not be read @uses $file if $file was not specified

◆ stringToBinary()

CFBinaryPropertyList::stringToBinary ( $val)
inherited

Uniques and transforms a string value to binary format and adds it to the object table.

Parameters
string$valThe string value
Return values
integerThe position in the object table

◆ toArray()

CFPropertyList::toArray ( )

Get PropertyList as array.

Return values
mixedprimitive value of first (and only) CFType, or array of primitive values of collection @uses $value for retrieving CFTypes

◆ toBinary()

CFBinaryPropertyList::toBinary ( )
inherited

Convert CFPropertyList to binary format; since we have to count our objects we simply unique CFDictionary and CFArray.

Return values
stringThe binary plist content

◆ toXML()

CFPropertyList::toXML ( $formatted = false)

Convert CFPropertyList to XML.

Parameters
bool$formattedPrint plist formatted (i.e. with newlines and whitespace indention) if true; defaults to false
Return values
stringThe XML content

◆ typeBytes()

static CFBinaryPropertyList::typeBytes ( $type,
$type_len )
staticinherited

Code an type byte, consisting of the type marker and the length of the type.

Parameters
string$typeThe type byte value (i.e. "d" for dictionaries)
integer$type_lenThe length of the type
Return values
stringThe packed type byte value

◆ uniqueAndCountValues()

CFBinaryPropertyList::uniqueAndCountValues ( $value)
protectedinherited

Count number of objects and create a unique table for strings.

Parameters
$valueThe value to count and unique
Return values
void

◆ unpackWithSize()

static CFBinaryPropertyList::unpackWithSize ( $nbytes,
$buff )
staticinherited

„unpack” multiple values of the specified size (i.e.

get the integers from their binary representation) from a string

Parameters
integer$nbytesThe number of bytes of each value to unpack
integer$buffThe string packed with integer values
Return values
arrayThe unpacked integers

◆ valid()

CFPropertyList::valid ( )

Test if $iteratorPosition addresses a valid element of $value @externalurl http://php.net/manual/en/iterator.valid.php.

Return values
booleantrue if current position is valid, false else @uses $iteratorPosition test if within $iteratorKeys @uses $iteratorPosition test if within $value

Member Data Documentation

◆ $miscSize

integer CFBinaryPropertyList::$miscSize = 0
protectedinherited

The length of misc objects (i.e.

not integer and not string) in file

◆ $offsets

CFBinaryPropertyList::$offsets = array()
protectedinherited

The „offsets” (i.e.

the different entries) in the file

◆ $types

array CFPropertyList::$types
staticprotected
Initial value:
= array(
'string' => 'CFString',
'real' => 'CFNumber',
'integer' => 'CFNumber',
'date' => 'CFDate',
'true' => 'CFBoolean',
'false' => 'CFBoolean',
'data' => 'CFData',
'array' => 'CFArray',
'dict' => 'CFDictionary'
)

List of NodeNames to ClassNames for resolving plist-files.


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