30 if (substr($class, -5) ==
'Table')
35 if (strpos($class,
'\\') ===
false)
41 $namespace = substr($class, 0, strrpos($class,
'\\') + 1);
42 $className = substr($class, strrpos($class,
'\\') + 1);
44 if (substr($className, 0, 3) ==
'EO_')
48 if ($className ==
'EO_NNM_Object')
53 elseif (substr($className, -11) ==
'_Collection')
55 $needFor =
'collection';
56 $entityName = substr($className, 3, -11);
60 $entityName = substr($className, 3);
63 $entityName .=
'Table';
64 $entityClass = $namespace.$entityName;
66 if (class_exists($entityClass) && is_subclass_of($entityClass, DataManager::class))
68 ($needFor ==
'object')
69 ? Entity::compileObjectClass($entityClass)
70 : Entity::compileCollectionClass($entityClass);