Ubiquity  2.0.0
php rapid development framework
OrmUtils Class Reference

Utilitaires de mappage Objet/relationnel. More...

Static Public Member Functions

static getModelMetadata ($className)
 
static isSerializable ($class, $member)
 
static isNullable ($class, $member)
 
static getFieldName ($class, $member)
 
static getFieldNames ($model)
 
static getTableName ($class)
 
static getKeyFieldsAndValues ($instance)
 
static getKeyFields ($instance)
 
static getMembers ($className)
 
static getFieldTypes ($className)
 
static getFieldType ($className, $field)
 
static getMembersAndValues ($instance, $members=NULL)
 
static isNotNullOrNullAccepted ($v, $className, $member)
 
static getFirstKey ($class)
 
static getFirstKeyValue ($instance)
 
static getManyToOneMembersAndValues ($instance)
 
static getMembersWithAnnotation ($class, $annotation)
 
static exists ($instance, $memberKey, $array)
 
static getJoinColumnName ($class, $member)
 
static getAnnotationInfo ($class, $keyAnnotation)
 
static getAnnotationInfoMember ($class, $keyAnnotation, $member)
 
static getSerializableFields ($class)
 
static getFieldsInRelations ($class)
 
static getManyToOneFields ($class)
 
static getManyToManyFields ($class)
 
static getDefaultFk ($classname)
 
static getMemberJoinColumns ($instance, $member, $metaDatas=NULL)
 

Static Private Attributes

static $modelsMetadatas
 

Detailed Description

Utilitaires de mappage Objet/relationnel.

Author
jc
Version
1.0.0.5

Definition at line 15 of file OrmUtils.php.

Member Function Documentation

◆ exists()

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

Definition at line 171 of file OrmUtils.php.

◆ getAnnotationInfo()

static getAnnotationInfo (   $class,
  $keyAnnotation 
)
static

Definition at line 194 of file OrmUtils.php.

◆ getAnnotationInfoMember()

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

Definition at line 200 of file OrmUtils.php.

◆ getDefaultFk()

static getDefaultFk (   $classname)
static

Definition at line 247 of file OrmUtils.php.

◆ getFieldName()

static getFieldName (   $class,
  $member 
)
static

Definition at line 41 of file OrmUtils.php.

◆ getFieldNames()

static getFieldNames (   $model)
static

Definition at line 50 of file OrmUtils.php.

◆ getFieldsInRelations()

static getFieldsInRelations (   $class)
static

Definition at line 222 of file OrmUtils.php.

◆ getFieldType()

static getFieldType (   $className,
  $field 
)
static

Definition at line 92 of file OrmUtils.php.

◆ getFieldTypes()

static getFieldTypes (   $className)
static

Definition at line 85 of file OrmUtils.php.

◆ getFirstKey()

static getFirstKey (   $class)
static

Definition at line 121 of file OrmUtils.php.

◆ getFirstKeyValue()

static getFirstKeyValue (   $instance)
static

Definition at line 126 of file OrmUtils.php.

◆ getJoinColumnName()

static getJoinColumnName (   $class,
  $member 
)
static

Definition at line 184 of file OrmUtils.php.

◆ getKeyFields()

static getKeyFields (   $instance)
static

Definition at line 71 of file OrmUtils.php.

◆ getKeyFieldsAndValues()

static getKeyFieldsAndValues (   $instance)
static

Definition at line 66 of file OrmUtils.php.

◆ getManyToManyFields()

static getManyToManyFields (   $class)
static

Definition at line 240 of file OrmUtils.php.

◆ getManyToOneFields()

static getManyToOneFields (   $class)
static

Definition at line 236 of file OrmUtils.php.

◆ getManyToOneMembersAndValues()

static getManyToOneMembersAndValues (   $instance)
static
Parameters
object$instance
Returns
mixed[]

Definition at line 136 of file OrmUtils.php.

◆ getMemberJoinColumns()

static getMemberJoinColumns (   $instance,
  $member,
  $metaDatas = NULL 
)
static

Definition at line 251 of file OrmUtils.php.

◆ getMembers()

static getMembers (   $className)
static

Definition at line 78 of file OrmUtils.php.

◆ getMembersAndValues()

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

Definition at line 99 of file OrmUtils.php.

◆ getMembersWithAnnotation()

static getMembersWithAnnotation (   $class,
  $annotation 
)
static

Definition at line 158 of file OrmUtils.php.

◆ getModelMetadata()

static getModelMetadata (   $className)
static

Definition at line 18 of file OrmUtils.php.

◆ getSerializableFields()

static getSerializableFields (   $class)
static

Definition at line 216 of file OrmUtils.php.

◆ getTableName()

static getTableName (   $class)
static

Definition at line 61 of file OrmUtils.php.

◆ isNotNullOrNullAccepted()

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

Definition at line 116 of file OrmUtils.php.

◆ isNullable()

static isNullable (   $class,
  $member 
)
static

Definition at line 33 of file OrmUtils.php.

◆ isSerializable()

static isSerializable (   $class,
  $member 
)
static

Definition at line 25 of file OrmUtils.php.

Field Documentation

◆ $modelsMetadatas

$modelsMetadatas
staticprivate

Definition at line 16 of file OrmUtils.php.


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