Poweradmin\Infrastructure\Utility
Classes
Prefixes CSV cell values that start with a formula trigger (=, +, -, @, tab, CR, LF) with a quote.
DependencyCheck class verifies the availability of required PHP extensions.
Resolves the client IP from REMOTE_ADDR, honoring forwarded headers only from private or trusted proxy peers.
LanguageCode class is used for retrieving language names based on their codes.
Detects the HTTP protocol (http/https) from server environment.
In-memory sorting, filtering, and pagination for datasets.
ORDER BY clauses and a PHP comparator that sort reverse zones by network hierarchy (10., 172., 192.168.).
Picks natural or hierarchical reverse zone sorting per the configured sort type, in SQL or in PHP.
Per-database ORDER BY clauses that sort zone and record names naturally instead of lexically, and the ORDER BY of API lists sorted in SQL.
An explicit list of proxy addresses. Unlike IpAddressRetriever's peer check, it trusts nothing implicitly: private and loopback addresses match only when listed.
Reads and sanitizes the request User-Agent for logging and bot detection.