Habari\Session::queue PHP Метод

queue() публичный статический Метод

Add objects or functions to the post-processing queue, executed via self::process_queue()
public static queue ( QueryRecord | Callable $fn, null | string $name = null )
$fn QueryRecord | Callable A QueryRecord to call ->update() on, or a function to execute
$name null | string An index to save the queue under, defaults to the SPL object hash for objects
    public static function queue($fn, $name = null)
    {
        if (is_null($name) && is_object($fn)) {
            $name = spl_object_hash($fn);
        }
        if (is_object($name)) {
            $name = spl_object_hash($name);
        }
        if (is_null($name)) {
            self::$write_queue[] = $fn;
        } else {
            self::$write_queue[$name] = $fn;
        }
    }