Inpsyde\MultilingualPress\Database\WPDBTableList::all_tables PHP Метод

all_tables() публичный Метод

Returns an array with the names of all tables.
С версии: 3.0.0
public all_tables ( ) : string[]
Результат string[] The names of all tables.
    public function all_tables()
    {
        $cache_key = 'all_tables';
        $cache_group = 'multilingualpress';
        $all_tables = wp_cache_get($cache_key, $cache_group);
        if (is_array($all_tables)) {
            return $all_tables;
        }
        $query = $this->db->prepare("SHOW TABLES LIKE '%s'", $this->db->esc_like("{$this->db->base_prefix}%"));
        $all_tables = $this->db->get_col($query);
        wp_cache_set($cache_key, $all_tables, $cache_group);
        return $all_tables;
    }