Jump to content

Clase Reflection


Thumbnail

Recommended Posts

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 by Thumbnail (see edit history)
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...