public registerDelayedQuery ( string $query, string $type, callable $callback = null, array $params = [] ) : boolean | ||
$query | string | The query to execute |
$type | string | The query type ('read' or 'write') |
$callback | callable | A callback function to pass the results array to |
$params | array | Query params. E.g. [1, 'steve'] or [':id' => 1, ':name' => 'steve'] |
Résultat | boolean | Whether registering was successful. |