Ubiquity\orm\traits$DAOBulkUpdatesTrait This class is part of Ubiquity.
More...
|
static | toInsert ($instance) |
| Adds an instance in the bulk list of objects to insert.
|
|
static | toInserts (array $instances) |
| Adds an array of instances in the bulk list of objects to insert.
|
|
static | flushInserts () |
| Executes all waiting insert operations.
|
|
static | toUpdate ($instance) |
| Adds an instance in the bulk list of objects to update.
|
|
static | toUpdates (array $instances) |
| Adds an array of instances in the bulk list of objects to update.
|
|
static | updateGroups ($count=5) |
|
static | insertGroups ($count=5) |
|
static | deleteGroups ($count=5) |
|
static | flushUpdates () |
| Executes all waiting update operations.
|
|
static | toDelete ($instance) |
| Adds an instance in the bulk list of objects to delete.
|
|
static | toDeletes (array $instances) |
| Adds an array of instances in the bulk list of objects to delete.
|
|
static | flushDeletes () |
| Executes all waiting delete operations.
|
|
static | flush () |
| Executes all waiting operations (inserts, updates, deletes)
|
|
static | clearBulks (?array $operations=null, ?array $classes=null) |
| Clear bulk and clear instances waiting for operations.
|
|
static | countInstancesBulk (string $class, string $operation='update') |
| Return the count of instances waiting for flushing in a bulk.
|
|
|
static | getBulk ($class, $operation='update') |
|
static | toOperation ($instance, string $operation) |
|
static | toOperations (array $instances, string $operation) |
|
|
static | $bulks = [ 'insert' => [ ],'update' => [ ],'delete' => [ ] ] |
|
Ubiquity\orm\traits$DAOBulkUpdatesTrait 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.4
Definition at line 13 of file DAOBulkUpdatesTrait.php.
◆ clearBulks()
static clearBulks |
( |
?array |
$operations = null , |
|
|
?array |
$classes = null |
|
) |
| |
|
static |
Clear bulk and clear instances waiting for operations.
- Parameters
-
array | $operations | |
array | $classes | |
Definition at line 165 of file DAOBulkUpdatesTrait.php.
◆ countInstancesBulk()
static countInstancesBulk |
( |
string |
$class, |
|
|
string |
$operation = 'update' |
|
) |
| |
|
static |
Return the count of instances waiting for flushing in a bulk.
- Parameters
-
string | $class | |
string | $operation | |
- Returns
- int
Definition at line 184 of file DAOBulkUpdatesTrait.php.
◆ deleteGroups()
static deleteGroups |
( |
|
$count = 5 | ) |
|
|
static |
◆ flush()
◆ flushDeletes()
◆ flushInserts()
◆ flushUpdates()
◆ getBulk()
static getBulk |
( |
|
$class, |
|
|
|
$operation = 'update' |
|
) |
| |
|
staticprotected |
◆ insertGroups()
static insertGroups |
( |
|
$count = 5 | ) |
|
|
static |
◆ toDelete()
static toDelete |
( |
|
$instance | ) |
|
|
static |
Adds an instance in the bulk list of objects to delete.
Call flush to commit the operation
- Parameters
-
Definition at line 124 of file DAOBulkUpdatesTrait.php.
◆ toDeletes()
static toDeletes |
( |
array |
$instances | ) |
|
|
static |
Adds an array of instances in the bulk list of objects to delete.
Call flush to commit the operation
- Parameters
-
Definition at line 134 of file DAOBulkUpdatesTrait.php.
◆ toInsert()
static toInsert |
( |
|
$instance | ) |
|
|
static |
Adds an instance in the bulk list of objects to insert.
Call flush to commit the operation
- Parameters
-
Definition at line 43 of file DAOBulkUpdatesTrait.php.
◆ toInserts()
static toInserts |
( |
array |
$instances | ) |
|
|
static |
Adds an array of instances in the bulk list of objects to insert.
Call flush to commit the operation
- Parameters
-
Definition at line 53 of file DAOBulkUpdatesTrait.php.
◆ toOperation()
static toOperation |
( |
|
$instance, |
|
|
string |
$operation |
|
) |
| |
|
staticprotected |
◆ toOperations()
static toOperations |
( |
array |
$instances, |
|
|
string |
$operation |
|
) |
| |
|
staticprotected |
◆ toUpdate()
static toUpdate |
( |
|
$instance | ) |
|
|
static |
Adds an instance in the bulk list of objects to update.
Call flush to commit the operation
- Parameters
-
Definition at line 73 of file DAOBulkUpdatesTrait.php.
◆ toUpdates()
static toUpdates |
( |
array |
$instances | ) |
|
|
static |
Adds an array of instances in the bulk list of objects to update.
Call flush to commit the operation
- Parameters
-
Definition at line 83 of file DAOBulkUpdatesTrait.php.
◆ updateGroups()
static updateGroups |
( |
|
$count = 5 | ) |
|
|
static |
◆ $bulks
$bulks = [ 'insert' => [ ],'update' => [ ],'delete' => [ ] ] |
|
staticprotected |
The documentation for this class was generated from the following file:
- C:/Users/myadd/Documents/GitHub/ubiquity-doc-api/vendor/phpmv/ubiquity/src/Ubiquity/orm/traits/DAOBulkUpdatesTrait.php