__construct()
__construct(integer $domainId)
Create new domain wrapper
Parameters
integer | $domainId |
Throws
- \pm_Exception
Domain wrapper
getByDomainId(integer $domainId) : \pm_Domain
Retrieve domain by known id
integer | $domainId |
getByGuid(string $domainGuid) : \pm_Domain
Retrieve domain by GUID
string | $domainGuid |
getByName(string $domainName) : \pm_Domain
Retrieve domain by display name
string | $domainName |
getAllDomains(boolean $mainDomainsOnly = false) : array<mixed,\pm_Domain>
Retrieve all domains
boolean | $mainDomainsOnly | [optional] Return only main domains. Default is false. |
getDomainsByClient(\pm_Client $client, boolean $mainDomainsOnly = false) : array<mixed,\pm_Domain>
Retrieve all client domains
\pm_Client | $client | Domains owner |
boolean | $mainDomainsOnly | [optional] Return only main domains. Default is false. |
getClient() : \pm_Client
Retrieve owner of domain