Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
Reflexion Class Reference

Reflection utilities in dev environment only. More...

+ Inheritance diagram for Reflexion:

Static Public Member Functions

static getMethods ($instance, $filter=null)
 
static getKeyFields ($instance)
 
static getMemberValue ($instance, $member)
 
static getPropValue ($instance, $prop)
 
static setMemberValue ($instance, $member, $value)
 
static getPropertiesAndValues ($instance, $props=null)
 
static getAnnotsEngine ()
 Returns the annotation engine (php8 attributes or php annotations).
 
static getAnnotationClass ($class, $annotation)
 
static getAnnotationMember ($class, $member, $annotation)
 
static getAnnotationMethod ($class, $method, $annotation)
 
static getAnnotationsMember ($class, $member, $annotation)
 
static getAnnotationsMethod ($class, $method, $annotation)
 
static getMembersAnnotationWithAnnotation ($class, $annotation)
 
static getMembersWithAnnotation ($class, $annotation)
 
static getMembersNameWithAnnotation ($class, $annotation)
 
static getTableName ($class)
 
static getMethodParameters (\ReflectionFunctionAbstract $method)
 
static getJoinTables ($class)
 
static getAllJoinTables ($models)
 
- Static Public Member Functions inherited from ReflexionFieldsTrait
static getDbType ($class, $member)
 
static isSerializable ($class, $member)
 
static getFieldName ($class, $member)
 
static isNullable ($class, $member)
 
static getProperties ($class)
 
static getProperty ($instance, $member)
 
static getPropertyType ($class, $property)
 
static getMetadata ($class, $property, $type, $name)
 

Static Protected Member Functions

static getMembersWithAnnotation_ ($class, $annotation, $callback)
 
- Static Protected Member Functions inherited from ReflexionFieldsTrait
static getAnnotationColumnMember ($class, $member)
 

Static Protected Attributes

static $classProperties = []
 

Detailed Description

Reflection utilities in dev environment only.

Author
jcheron myadd.nosp@m.ress.nosp@m.mail@.nosp@m.gmai.nosp@m.l.com
Version
1.0.5

Definition at line 17 of file Reflexion.php.

Member Function Documentation

◆ getAllJoinTables()

static getAllJoinTables (   $models)
static

Definition at line 183 of file Reflexion.php.

◆ getAnnotationClass()

static getAnnotationClass (   $class,
  $annotation 
)
static

Definition at line 85 of file Reflexion.php.

◆ getAnnotationMember()

static getAnnotationMember (   $class,
  $member,
  $annotation 
)
static

Reimplemented from ReflexionFieldsTrait.

Definition at line 89 of file Reflexion.php.

◆ getAnnotationMethod()

static getAnnotationMethod (   $class,
  $method,
  $annotation 
)
static

Definition at line 94 of file Reflexion.php.

◆ getAnnotationsMember()

static getAnnotationsMember (   $class,
  $member,
  $annotation 
)
static

Definition at line 99 of file Reflexion.php.

◆ getAnnotationsMethod()

static getAnnotationsMethod (   $class,
  $method,
  $annotation 
)
static

Definition at line 103 of file Reflexion.php.

◆ getAnnotsEngine()

static getAnnotsEngine ( )
static

Returns the annotation engine (php8 attributes or php annotations).

Returns
AnnotationsEngineInterface
Since
2.4.0

Reimplemented from ReflexionFieldsTrait.

Definition at line 81 of file Reflexion.php.

◆ getJoinTables()

static getJoinTables (   $class)
static

Definition at line 174 of file Reflexion.php.

◆ getKeyFields()

static getKeyFields (   $instance)
static

Definition at line 26 of file Reflexion.php.

◆ getMembersAnnotationWithAnnotation()

static getMembersAnnotationWithAnnotation (   $class,
  $annotation 
)
static

Definition at line 122 of file Reflexion.php.

◆ getMembersNameWithAnnotation()

static getMembersNameWithAnnotation (   $class,
  $annotation 
)
static

Definition at line 134 of file Reflexion.php.

◆ getMembersWithAnnotation()

static getMembersWithAnnotation (   $class,
  $annotation 
)
static

Definition at line 128 of file Reflexion.php.

◆ getMembersWithAnnotation_()

static getMembersWithAnnotation_ (   $class,
  $annotation,
  $callback 
)
staticprotected

Definition at line 140 of file Reflexion.php.

◆ getMemberValue()

static getMemberValue (   $instance,
  $member 
)
static

Definition at line 30 of file Reflexion.php.

◆ getMethodParameters()

static getMethodParameters ( \ReflectionFunctionAbstract  $method)
static

Definition at line 166 of file Reflexion.php.

◆ getMethods()

static getMethods (   $instance,
  $filter = null 
)
static

Definition at line 21 of file Reflexion.php.

◆ getPropertiesAndValues()

static getPropertiesAndValues (   $instance,
  $props = null 
)
static

Definition at line 50 of file Reflexion.php.

◆ getPropValue()

static getPropValue (   $instance,
  $prop 
)
static

Definition at line 36 of file Reflexion.php.

◆ getTableName()

static getTableName (   $class)
static

Definition at line 152 of file Reflexion.php.

◆ setMemberValue()

static setMemberValue (   $instance,
  $member,
  $value 
)
static

Definition at line 40 of file Reflexion.php.

Field Documentation

◆ $classProperties

$classProperties = []
staticprotected

Definition at line 19 of file Reflexion.php.


The documentation for this class was generated from the following file: