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

Ubiquity\controllers\crud$CRUDHelper This class is part of Ubiquity. More...

Static Public Member Functions

static getIdentifierFunction ($model)
 
static search ($model, $search, $fields, $initialCondition='1=1')
 
static update ($instance, $values, $setValues=true, $updateMany=true, $eventCallback=null)
 
static getFkIntance ($instance, $model, $member, $included=false)
 
static getFKIntances ($instance, $model, $included=false)
 

Static Protected Member Functions

static setInputValues (string $className, $instance, &$values, $setValues)
 
static updateOneToMany ($oneToManyRelations, $members, $className, $instance, $values)
 
static updateManyToOne ($manyToOneRelations, $members, $className, $instance, $values)
 
static updateManyToMany ($manyToManyRelations, $members, $className, $instance, $values)
 

Static Private Member Functions

static getInputValues ($values, $index)
 
static getOneToManyKeys ($keys, $values, $index, $defaultId)
 
static getMultiWhere ($ids, $class)
 

Detailed Description

Ubiquity\controllers\crud$CRUDHelper This class is part of Ubiquity.

Author
jc
Version
1.0.4

Definition at line 21 of file CRUDHelper.php.

Member Function Documentation

◆ getFkIntance()

static getFkIntance (   $instance,
  $model,
  $member,
  $included = false 
)
static

Definition at line 233 of file CRUDHelper.php.

◆ getFKIntances()

static getFKIntances (   $instance,
  $model,
  $included = false 
)
static

Definition at line 256 of file CRUDHelper.php.

◆ getIdentifierFunction()

static getIdentifierFunction (   $model)
static

Definition at line 23 of file CRUDHelper.php.

◆ getInputValues()

static getInputValues (   $values,
  $index 
)
staticprivate

Definition at line 117 of file CRUDHelper.php.

◆ getMultiWhere()

static getMultiWhere (   $ids,
  $class 
)
staticprivate

Definition at line 220 of file CRUDHelper.php.

◆ getOneToManyKeys()

static getOneToManyKeys (   $keys,
  $values,
  $index,
  $defaultId 
)
staticprivate

Definition at line 127 of file CRUDHelper.php.

◆ search()

static search (   $model,
  $search,
  $fields,
  $initialCondition = '1=1' 
)
static

Definition at line 37 of file CRUDHelper.php.

◆ setInputValues()

static setInputValues ( string  $className,
  $instance,
$values,
  $setValues 
)
staticprotected

Definition at line 101 of file CRUDHelper.php.

◆ update()

static update (   $instance,
  $values,
  $setValues = true,
  $updateMany = true,
  $eventCallback = null 
)
static

Definition at line 61 of file CRUDHelper.php.

◆ updateManyToMany()

static updateManyToMany (   $manyToManyRelations,
  $members,
  $className,
  $instance,
  $values 
)
staticprotected

Definition at line 205 of file CRUDHelper.php.

◆ updateManyToOne()

static updateManyToOne (   $manyToOneRelations,
  $members,
  $className,
  $instance,
  $values 
)
staticprotected

Definition at line 185 of file CRUDHelper.php.

◆ updateOneToMany()

static updateOneToMany (   $oneToManyRelations,
  $members,
  $className,
  $instance,
  $values 
)
staticprotected

Definition at line 139 of file CRUDHelper.php.


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