✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ webm004.cluster127.gra.hosting.ovh.net ​🇻​♯➤ 6.18.42-ovh-vps-grsec-zfs+ #1 SMP 🇾​♯➤ 2026

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 54.36.91.62 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.217.98
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ _dyuweyrj4,_dyuweyrj4r,dl

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /home/docteuh/www/admin/user/services//class-rsssl-callback-queue.php
<?php

namespace RSSSL\Security\WordPress\Two_Fa\Services;

class Rsssl_Callback_Queue {

    /**
     * Option name used to store the callback queue.
     *
     * @var string
     */
    private $option_name = 'rsssl_callback_queue';

    /**
     * Add a task to the queue.
     *
     * @param callable $callback The callback to run.
     * @param array    $args     The arguments to pass to the callback.
     *
     * @return void
     */
    public function add_task(callable $callback, array $args = []): void {
        $queue = get_option($this->option_name, []);
        // Each task is an associative array with a callback and its args.
        $queue[] = [
            'callback'  => $callback,
            'args'      => $args,
            'timestamp' => time(),
        ];
        $this->save_queue($queue);
    }

    /**
     * Retrieve the current queue.
     *
     * @return array
     */
    public function get_queue(): array {
        return get_option($this->option_name, []);
    }

    /**
     * Save the modified queue.
     *
     * @param array $queue The updated queue.
     *
     * @return void
     */
    public function save_queue(array $queue): void {
        update_option($this->option_name, $queue);
    }

    /**
     * Process a limited number of tasks from the queue.
     *
     * @param int $limit The maximum number of tasks to process.
     *
     * @return void
     */
    public function process_tasks(int $limit = 1): void {
        $queue = $this->get_queue();
        if (empty($queue)) {
            return;
        }
        // Process up to $limit tasks.
        $processed = 0;
        while (!empty($queue) && $processed < $limit) {
            $task = array_shift($queue);
            if (is_callable($task['callback'])) {
                // Call the callback with the stored arguments.
                call_user_func_array($task['callback'], $task['args']);
            }
            $processed++;
        }

        // Save the updated (remaining) queue.
        $this->save_queue($queue);
    }
}


Current_dir [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
23 Sep 2026 5.51 AM
docteuh / users
0755
class-rsssl-callback-queue.php
2.01 KB
18 Jun 2026 6.25 PM
docteuh / users
0644
class-rsssl-two-fa-forced-role-service.php
2.647 KB
18 Jun 2026 6.25 PM
docteuh / users
0644
class-rsssl-two-fa-reminder-service.php
6.345 KB
18 Jun 2026 6.25 PM
docteuh / users
0644
class-rsssl-two-fa-status-service.php
2.083 KB
18 Jun 2026 6.25 PM
docteuh / users
0644
class-rsssl-two-factor-reset-service.php
3.106 KB
18 Jun 2026 6.25 PM
docteuh / users
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF