- Processed vs. Compiled Templates
- Loading Data Types on demand
- From 11MB to 7MB
function &create( $dataTypeString )
{
$types =& $GLOBALS["eZDataTypes"];
$def = null;
+ if ( !isset( $types[$dataTypeString] ) )
+ {
+ eZDataType::loadAndRegisterType($dataTypeString);
+ }
+
if ( isset( $types[$dataTypeString] ) )
{
$className = $types[$dataTypeString];
@@ -709,6 +716,4 @@
var $Name;
}
-eZDataType::loadAndRegisterAllTypes();