class ZoneCountService (View source)

Zone counting service

Methods

__construct(PDO $db, ConfigurationInterface $config, UserContextService|null $userContext = null, DnsBackendProvider|null $backendProvider = null)

No description

int
countZones(string $perm, string $letterstart = 'all', string $zone_type = 'forward')

Count zones with filtering options

Details

__construct(PDO $db, ConfigurationInterface $config, UserContextService|null $userContext = null, DnsBackendProvider|null $backendProvider = null)

No description

Parameters

PDO $db
ConfigurationInterface $config
UserContextService|null $userContext
DnsBackendProvider|null $backendProvider

int countZones(string $perm, string $letterstart = 'all', string $zone_type = 'forward')

Count zones with filtering options

Parameters

string $perm

'all', 'own' uses session 'userid'

string $letterstart

Starting letters to match (single letter or '1' for numbers) [default='all' for no filtering]

string $zone_type

Type of zones to count ['all', 'forward', 'reverse'] [default='forward']

Return Value

int

Count of zones matched