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

Used by DAO class, realize relations assignments. More...

+ Inheritance diagram for DAORelationsAssignmentsTrait:

Static Public Member Functions

static _affectsRelationObjects ($className, $classPropKey, $manyToOneQueries, $oneToManyQueries, $manyToManyParsers, $objects, $included, $useCache)
 

Static Protected Member Functions

static setToMember ($member, $instance, $value, $accessor)
 
static getAccessor ($member, $instance, $part)
 

Static Private Member Functions

static affectsManyToOneFromArray ($object, $member, $manyToOneObjects, $fkField, $accessor)
 
static affectsOneToManyFromArray ($instance, $member, $array=null, $mappedByAccessor=null, $accessor='', $class='', $prop=null, $classPropKey=null)
 
static _affectsObjectsFromArray ($queries, $included, $affectsCallback, $part, $useCache=NULL)
 
static _affectsManyToManyObjectsFromArray ($objectsClass, $parsers, $objects, $included, $useCache=NULL)
 
static _getOneToManyFromArray (&$ret, $array, $fkv, $elementAccessor, $prop)
 
static generateManyToManyParser (ManyToManyParser $parser, &$myPkValues)
 
static _getIncludedNext ($included, $member)
 
static getManyToManyFromArrayIds ($objectClass, $relationObjects, $ids)
 

Detailed Description

Used by DAO class, realize relations assignments.

Ubiquity\orm\traits$DAORelationsAssignmentsTrait This class is part of Ubiquity

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

Definition at line 20 of file DAORelationsAssignmentsTrait.php.

Member Function Documentation

◆ _affectsManyToManyObjectsFromArray()

static _affectsManyToManyObjectsFromArray (   $objectsClass,
  $parsers,
  $objects,
  $included,
  $useCache = NULL 
)
staticprivate

Definition at line 101 of file DAORelationsAssignmentsTrait.php.

◆ _affectsObjectsFromArray()

static _affectsObjectsFromArray (   $queries,
  $included,
  $affectsCallback,
  $part,
  $useCache = NULL 
)
staticprivate

Definition at line 75 of file DAORelationsAssignmentsTrait.php.

◆ _affectsRelationObjects()

static _affectsRelationObjects (   $className,
  $classPropKey,
  $manyToOneQueries,
  $oneToManyQueries,
  $manyToManyParsers,
  $objects,
  $included,
  $useCache 
)
static

Definition at line 37 of file DAORelationsAssignmentsTrait.php.

◆ _getIncludedNext()

static _getIncludedNext (   $included,
  $member 
)
staticprivate

Definition at line 147 of file DAORelationsAssignmentsTrait.php.

◆ _getOneToManyFromArray()

static _getOneToManyFromArray ( $ret,
  $array,
  $fkv,
  $elementAccessor,
  $prop 
)
staticprivate

Definition at line 124 of file DAORelationsAssignmentsTrait.php.

◆ affectsManyToOneFromArray()

static affectsManyToOneFromArray (   $object,
  $member,
  $manyToOneObjects,
  $fkField,
  $accessor 
)
staticprivate

Definition at line 53 of file DAORelationsAssignmentsTrait.php.

◆ affectsOneToManyFromArray()

static affectsOneToManyFromArray (   $instance,
  $member,
  $array = null,
  $mappedByAccessor = null,
  $accessor = '',
  $class = '',
  $prop = null,
  $classPropKey = null 
)
staticprivate
Parameters
object$instance
string$member
array$array
string$mappedByAccessor
string$class
\ReflectionProperty$prop

Definition at line 69 of file DAORelationsAssignmentsTrait.php.

◆ generateManyToManyParser()

static generateManyToManyParser ( ManyToManyParser  $parser,
$myPkValues 
)
staticprivate

Definition at line 133 of file DAORelationsAssignmentsTrait.php.

◆ getAccessor()

static getAccessor (   $member,
  $instance,
  $part 
)
staticprotected

Definition at line 27 of file DAORelationsAssignmentsTrait.php.

◆ getManyToManyFromArrayIds()

static getManyToManyFromArrayIds (   $objectClass,
  $relationObjects,
  $ids 
)
staticprivate

Definition at line 151 of file DAORelationsAssignmentsTrait.php.

◆ setToMember()

static setToMember (   $member,
  $instance,
  $value,
  $accessor 
)
staticprotected

Definition at line 22 of file DAORelationsAssignmentsTrait.php.


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