CFTypeDetector Interface for converting native PHP data structures to CFPropertyList objects.
Located in /CFTypeDetector.php (line 14)
flag stating if all arrays should automatically be converted to CFDictionary
flag stating if exceptions should be suppressed or thrown
Create new CFTypeDetector
Determine if an array is associative or numerical.
Numerical Arrays have incrementing index-numbers that don't contain gaps.
Create CFType-structure by guessing the data-types.
CFArray, CFDictionary, CFBoolean, CFNumber and CFString can be created, CFDate and CFData cannot.
Note:Distinguishing between CFArray and CFDictionary is done by examining the keys. Keys must be strictly incrementing integers to evaluate to a CFArray. Since PHP does not offer a function to test for associative arrays, this test causes the input array to be walked twice and thus work rather slow on large collections. If you work with large arrays and can live with all arrays evaluating to CFDictionary, feel free to set the appropriate flag.
Note: If $value is an instance of CFType it is simply returned.
Note: If $value is neither a CFType, array, numeric, boolean nor string, it is omitted.
Documentation generated on Fri, 01 Jan 2010 21:33:34 +0100 by phpDocumentor 1.4.1