PHP 8.3.30
Preview: Wpdb.php Size: 1.11 KB
/usr/local/lsws/add-ons/webcachemgr/src/WpWrapper/Wpdb.php

<?php

/** *********************************************
 * LiteSpeed Web Server Cache Manager
 *
 * @author    Michael Alegre
 * @copyright 2023 LiteSpeed Technologies, Inc.
 * @since     1.7
 * *******************************************
 */

namespace Lsc\Wp\WpWrapper;

/**
 * https://developer.wordpress.org/reference/classes/wpdb/
 *
 * @since 1.17
 */
class Wpdb
{

    /**
     * https://developer.wordpress.org/reference/classes/wpdb/
     *
     * @since 1.17
     *
     * @global \wpdb $wpdb
     *
     * @return string
     *
     * @noinspection PhpUndefinedClassInspection
     */
    public static function getBlogs()
    {
        global $wpdb;

        return $wpdb->blogs;
    }

    /**
     * https://developer.wordpress.org/reference/classes/wpdb/get_col/
     *
     * @since 1.17
     *
     * @global \wpdb $wpdb
     *
     * @param string|null $query
     * @param int         $x
     *
     * @return array
     *
     * @noinspection PhpUndefinedClassInspection
     */
    public static function getCol( $query = null, $x = 0 )
    {
        global $wpdb;

        return $wpdb->get_col($query, $x);
    }
}

Directory Contents

Dirs: 0 × Files: 6

Name Size Perms Modified Actions
2.42 KB lrw-rw-r-- 2026-04-16 23:11:34
Edit Download
642 B lrw-rw-r-- 2026-04-16 23:11:34
Edit Download
1.11 KB lrw-rw-r-- 2026-04-16 23:11:34
Edit Download
8.55 KB lrw-rw-r-- 2026-04-16 23:11:34
Edit Download
1.03 KB lrw-rw-r-- 2026-04-16 23:11:34
Edit Download
1.02 KB lrw-rw-r-- 2026-04-16 23:11:34
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).