Thumbnail Posted September 24, 2012 Share Posted September 24, 2012 (edited) Hola a todos, estaba leyendo la clase ObjectModel.php y me encontre con el siguiente código. ¿Donde se encuentra la clase Reflection y que hace? public static function getDefinition($class, $field = null){ $reflection = new ReflectionClass($class); $definition = $reflection->getStaticPropertyValue('definition'); $definition['classname'] = $class; if (!empty($definition['multilang'])) $definition['associations'][Collection::LANG_ALIAS] = array('type' => self::HAS_MANY,'field' => $definition['primary'],'foreign_field' => $definition['primary'], ); if ($field) return isset($definition['fields'][$field]) ? $definition['fields'][$field] : null; return $definition;} Saludos Edited September 24, 2012 by Thumbnail (see edit history) Link to comment Share on other sites More sharing options...
shacker Posted September 30, 2012 Share Posted September 30, 2012 Solo devuelve informacion acerca de una calse Link to comment Share on other sites More sharing options...
Recommended Posts