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

Ubiquity\orm\traits$OrmUtilsFieldsTrait This class is part of Ubiquity. More...

+ Inheritance diagram for OrmUtilsFieldsTrait:

Static Public Member Functions

static getAnnotationInfo ($class, $keyAnnotation)
 
static getAnnotationInfoMember ($class, $keyAnnotation, $member)
 
static getFieldTypes ($className)
 
static getFieldType ($className, $field)
 
static getKeyFields ($instance)
 Return primary key fields from instance or model class.
 
static getKeyMembers ($instance)
 Return primary key members from instance or model class.
 
static getFirstKey ($class)
 
static getFirstPropKey ($class)
 
static getPropKeys ($class)
 
static getAccessors ($class, $members)
 
static getAllFields ($class)
 
static getFieldNames ($model)
 
static getSerializableFields ($class)
 
static getNullableFields ($class)
 
static getSerializableMembers ($class)
 
static getFormAllFields ($class)
 

Static Protected Attributes

static $fieldNames = [ ]
 
static $propFirstKeys = [ ]
 
static $propKeys = [ ]
 
static $accessors = [ ]
 

Detailed Description

Ubiquity\orm\traits$OrmUtilsFieldsTrait This class is part of Ubiquity.

Author
jc
Version
1.0.2

Definition at line 13 of file OrmUtilsFieldsTrait.php.

Member Function Documentation

◆ getAccessors()

static getAccessors (   $class,
  $members 
)
static

Definition at line 105 of file OrmUtilsFieldsTrait.php.

◆ getAllFields()

static getAllFields (   $class)
static

Definition at line 119 of file OrmUtilsFieldsTrait.php.

◆ getAnnotationInfo()

static getAnnotationInfo (   $class,
  $keyAnnotation 
)
staticabstract

Reimplemented in OrmUtils.

◆ getAnnotationInfoMember()

static getAnnotationInfoMember (   $class,
  $keyAnnotation,
  $member 
)
staticabstract

Reimplemented in OrmUtils.

◆ getFieldNames()

static getFieldNames (   $model)
static

Definition at line 123 of file OrmUtilsFieldsTrait.php.

◆ getFieldType()

static getFieldType (   $className,
  $field 
)
static

Definition at line 31 of file OrmUtilsFieldsTrait.php.

◆ getFieldTypes()

static getFieldTypes (   $className)
static

Definition at line 23 of file OrmUtilsFieldsTrait.php.

◆ getFirstKey()

static getFirstKey (   $class)
static

Definition at line 69 of file OrmUtilsFieldsTrait.php.

◆ getFirstPropKey()

static getFirstPropKey (   $class)
static
Parameters
string$class
Returns
\ReflectionProperty

Definition at line 82 of file OrmUtilsFieldsTrait.php.

◆ getFormAllFields()

static getFormAllFields (   $class)
static

Definition at line 153 of file OrmUtilsFieldsTrait.php.

◆ getKeyFields()

static getKeyFields (   $instance)
static

Return primary key fields from instance or model class.

Parameters
string | object$instance
Returns
array|boolean

Definition at line 45 of file OrmUtilsFieldsTrait.php.

◆ getKeyMembers()

static getKeyMembers (   $instance)
static

Return primary key members from instance or model class.

Parameters
string | object$instance
Returns
array

Definition at line 58 of file OrmUtilsFieldsTrait.php.

◆ getNullableFields()

static getNullableFields (   $class)
static

Definition at line 143 of file OrmUtilsFieldsTrait.php.

◆ getPropKeys()

static getPropKeys (   $class)
static

Definition at line 91 of file OrmUtilsFieldsTrait.php.

◆ getSerializableFields()

static getSerializableFields (   $class)
static

Definition at line 137 of file OrmUtilsFieldsTrait.php.

◆ getSerializableMembers()

static getSerializableMembers (   $class)
static

Definition at line 147 of file OrmUtilsFieldsTrait.php.

Field Documentation

◆ $accessors

$accessors = [ ]
staticprotected

Definition at line 21 of file OrmUtilsFieldsTrait.php.

◆ $fieldNames

$fieldNames = [ ]
staticprotected

Definition at line 18 of file OrmUtilsFieldsTrait.php.

◆ $propFirstKeys

$propFirstKeys = [ ]
staticprotected

Definition at line 19 of file OrmUtilsFieldsTrait.php.

◆ $propKeys

$propKeys = [ ]
staticprotected

Definition at line 20 of file OrmUtilsFieldsTrait.php.


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