ajouter les méthodes déléguées pour Capacitor
This commit is contained in:
parent
b4e28ade02
commit
b6cc62e010
@ -8,7 +8,7 @@ use Traversable;
|
|||||||
/**
|
/**
|
||||||
* Class CapacitorChannel: un canal d'une instance de {@link ICapacitor}
|
* Class CapacitorChannel: un canal d'une instance de {@link ICapacitor}
|
||||||
*/
|
*/
|
||||||
class CapacitorChannel {
|
class CapacitorChannel implements ITransactor {
|
||||||
const NAME = null;
|
const NAME = null;
|
||||||
|
|
||||||
const TABLE_NAME = null;
|
const TABLE_NAME = null;
|
||||||
@ -397,6 +397,42 @@ class CapacitorChannel {
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function willUpdate(...$transactors): ITransactor {
|
||||||
|
return $this->capacitor->willUpdate(...$transactors);
|
||||||
|
}
|
||||||
|
|
||||||
|
function inTransaction(): bool {
|
||||||
|
return $this->capacitor->inTransaction();
|
||||||
|
}
|
||||||
|
|
||||||
|
function beginTransaction(?callable $func=null, bool $commit=true): void {
|
||||||
|
$this->capacitor->beginTransaction($func, $commit);
|
||||||
|
}
|
||||||
|
|
||||||
|
function commit(): void {
|
||||||
|
$this->capacitor->commit();
|
||||||
|
}
|
||||||
|
|
||||||
|
function rollback(): void {
|
||||||
|
$this->capacitor->rollback();
|
||||||
|
}
|
||||||
|
|
||||||
|
function db(): IDatabase {
|
||||||
|
return $this->capacitor->getStorage()->db();
|
||||||
|
}
|
||||||
|
|
||||||
|
function exists(): bool {
|
||||||
|
return $this->capacitor->exists();
|
||||||
|
}
|
||||||
|
|
||||||
|
function ensureExists(): void {
|
||||||
|
$this->capacitor->ensureExists();
|
||||||
|
}
|
||||||
|
|
||||||
|
function reset(bool $recreate=false): void {
|
||||||
|
$this->capacitor->reset($recreate);
|
||||||
|
}
|
||||||
|
|
||||||
function charge($item, $func=null, ?array $args=null, ?array &$values=null): int {
|
function charge($item, $func=null, ?array $args=null, ?array &$values=null): int {
|
||||||
return $this->capacitor->charge($item, $func, $args, $values);
|
return $this->capacitor->charge($item, $func, $args, $values);
|
||||||
}
|
}
|
||||||
@ -424,4 +460,8 @@ class CapacitorChannel {
|
|||||||
function delete($filter, $func=null, ?array $args=null): int {
|
function delete($filter, $func=null, ?array $args=null): int {
|
||||||
return $this->capacitor->delete($filter, $func, $args);
|
return $this->capacitor->delete($filter, $func, $args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function close(): void {
|
||||||
|
$this->capacitor->close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user