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

Object/relational mapping utilities. More...

+ Inheritance diagram for OrmUtils:

Static Public Member Functions

static getModelMetadata ($className)
 
static isSerializable ($class, $member)
 
static isNullable ($class, $member)
 
static getFieldName ($class, $member)
 
static getTableName ($class)
 
static getKeyFieldsAndValues ($instance, $prefix='')
 
static getFieldsAndValues_ ($instance, $members, $prefix='')
 
static getKeyPropsAndValues_ ($instance, $props)
 
static getPrimaryKeys ($className)
 
static getMembers ($className)
 
static getMembersAndValues ($instance, $members=null)
 
static isNotNullOrNullAccepted ($v, $className, $member)
 
static getFirstKeyValue ($instance)
 
static getFirstKeyValue_ ($instance, $members)
 
static getKeyValues ($instance)
 
static getPropKeyValues ($instance, $props)
 
static getMembersWithAnnotation ($class, $annotation)
 
static exists ($instance, $memberKey, $array)
 
static getAnnotationInfo ($class, $keyAnnotation)
 
static getAnnotationInfoMember ($class, $keyAnnotation, $member)
 
static setFieldToMemberNames (&$fields, $relFields)
 
static objectAsJSON ($instance)
 
static getTransformers ($class)
 
static getAccessors ($class)
 
static clearMetaDatas ()
 
static hasAllMembersPublic ($className)
 
- Static Public Member Functions inherited from OrmUtilsFieldsTrait
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 Public Member Functions inherited from OrmUtilsRelationsTrait
static getFirstKey ($class)
 
static getKeyFieldsAndValues ($instance)
 
static getJoinTables ($class)
 
static getAllJoinTables ($models)
 
static getFieldsInRelations ($class)
 
static getRelationInfos ($class)
 
static getFieldsInRelations_ ($class)
 
static getFieldsInRelationsForUpdate_ ($class)
 
static getAnnotFieldsInRelations ($class)
 
static getUJoinSQL ($db, $model, $arrayAnnot, $field, &$aliases, $quote)
 
static getOneToManyFields ($class)
 
static getRemoveCascadeFields ($class, $keyAnnotation='#oneToMany')
 
static getManyToOneFields ($class)
 
static getManyToManyFields ($class)
 
static getDefaultFk ($classname)
 
static getMemberJoinColumns ($instance, $member, $metaDatas=NULL)
 
static getManyToOneMembersAndValues ($instance)
 
static getJoinColumnName ($class, $member)
 
static isManyToMany ($class)
 
static getManyToManyFieldsDt ($class, $manyClass)
 

Static Protected Member Functions

static _is ($class, $member, $like)
 

Static Private Attributes

static $modelsMetadatas
 

Additional Inherited Members

- Static Protected Attributes inherited from OrmUtilsFieldsTrait
static $fieldNames = [ ]
 
static $propFirstKeys = [ ]
 
static $propKeys = [ ]
 
static $accessors = [ ]
 

Detailed Description

Object/relational mapping utilities.

Author
jc
Version
1.0.9

Definition at line 17 of file OrmUtils.php.

Member Function Documentation

◆ _is()

static _is (   $class,
  $member,
  $like 
)
staticprotected

Definition at line 33 of file OrmUtils.php.

◆ clearMetaDatas()

static clearMetaDatas ( )
static

Definition at line 195 of file OrmUtils.php.

◆ exists()

static exists (   $instance,
  $memberKey,
  $array 
)
static
Parameters
object$instance
string$memberKey
array$array
Returns
boolean

Definition at line 140 of file OrmUtils.php.

◆ getAccessors()

static getAccessors (   $class)
static

Definition at line 190 of file OrmUtils.php.

◆ getAnnotationInfo()

static getAnnotationInfo (   $class,
  $keyAnnotation 
)
static

Reimplemented from OrmUtilsFieldsTrait.

Definition at line 151 of file OrmUtils.php.

◆ getAnnotationInfoMember()

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

Reimplemented from OrmUtilsFieldsTrait.

Definition at line 155 of file OrmUtils.php.

◆ getFieldName()

static getFieldName (   $class,
  $member 
)
static

Definition at line 41 of file OrmUtils.php.

◆ getFieldsAndValues_()

static getFieldsAndValues_ (   $instance,
  $members,
  $prefix = '' 
)
static

Definition at line 54 of file OrmUtils.php.

◆ getFirstKeyValue()

static getFirstKeyValue (   $instance)
static

Definition at line 107 of file OrmUtils.php.

◆ getFirstKeyValue_()

static getFirstKeyValue_ (   $instance,
  $members 
)
static

Definition at line 112 of file OrmUtils.php.

◆ getKeyFieldsAndValues()

static getKeyFieldsAndValues (   $instance,
  $prefix = '' 
)
static

Definition at line 49 of file OrmUtils.php.

◆ getKeyPropsAndValues_()

static getKeyPropsAndValues_ (   $instance,
  $props 
)
static

Definition at line 64 of file OrmUtils.php.

◆ getKeyValues()

static getKeyValues (   $instance)
static

Definition at line 116 of file OrmUtils.php.

◆ getMembers()

static getMembers (   $className)
static

Definition at line 77 of file OrmUtils.php.

◆ getMembersAndValues()

static getMembersAndValues (   $instance,
  $members = null 
)
static

Definition at line 85 of file OrmUtils.php.

◆ getMembersWithAnnotation()

static getMembersWithAnnotation (   $class,
  $annotation 
)
static

Definition at line 129 of file OrmUtils.php.

◆ getModelMetadata()

static getModelMetadata (   $className)
static

Reimplemented from OrmUtilsRelationsTrait.

Definition at line 21 of file OrmUtils.php.

◆ getPrimaryKeys()

static getPrimaryKeys (   $className)
static

Definition at line 73 of file OrmUtils.php.

◆ getPropKeyValues()

static getPropKeyValues (   $instance,
  $props 
)
static

Definition at line 121 of file OrmUtils.php.

◆ getTableName()

static getTableName (   $class)
static

Reimplemented from OrmUtilsRelationsTrait.

Definition at line 45 of file OrmUtils.php.

◆ getTransformers()

static getTransformers (   $class)
static

Definition at line 185 of file OrmUtils.php.

◆ hasAllMembersPublic()

static hasAllMembersPublic (   $className)
static

Definition at line 199 of file OrmUtils.php.

◆ isNotNullOrNullAccepted()

static isNotNullOrNullAccepted (   $v,
  $className,
  $member 
)
static

Definition at line 102 of file OrmUtils.php.

◆ isNullable()

static isNullable (   $class,
  $member 
)
static

Definition at line 29 of file OrmUtils.php.

◆ isSerializable()

static isSerializable (   $class,
  $member 
)
static

Definition at line 25 of file OrmUtils.php.

◆ objectAsJSON()

static objectAsJSON (   $instance)
static

Definition at line 179 of file OrmUtils.php.

◆ setFieldToMemberNames()

static setFieldToMemberNames ( $fields,
  $relFields 
)
static

Definition at line 171 of file OrmUtils.php.

Field Documentation

◆ $modelsMetadatas

$modelsMetadatas
staticprivate

Definition at line 19 of file OrmUtils.php.


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