Site
Table of Contents
Constants
- FREE_DOMAIN_GRACE_DAYS = 14
- Allowed days for use free domain after downgrade plan.
Methods
- checkLimitsByLicenseChange() : void
- getFreeDomainSuspendedTime() : int
- Returns suspended time of free domain.
- isCreatingAllowed() : bool
- Checks restriction for creating and publication site.
- isEmailConfirmed() : bool
- Returns true if email is successfully confirmed.
- isExportAllowed() : bool
- Checks restriction for site export.
- isFreeDomainAllowed() : bool
- Checks restriction for free domain.
- isPhoneConfirmed() : bool
- Returns true if phone is successfully confirmed.
- isTermsFooterShow() : bool
- Checks showing terms footer.
- manageFreeDomains() : void
- System method for deactivate all free domains.
- publishByLicenseChange() : void
- unpublishByScannerLockPortal() : bool
Constants
FREE_DOMAIN_GRACE_DAYS
Allowed days for use free domain after downgrade plan.
public
mixed
FREE_DOMAIN_GRACE_DAYS
= 14
Methods
checkLimitsByLicenseChange()
public
static checkLimitsByLicenseChange() : void
getFreeDomainSuspendedTime()
Returns suspended time of free domain.
public
static getFreeDomainSuspendedTime() : int
Return values
intisCreatingAllowed()
Checks restriction for creating and publication site.
public
static isCreatingAllowed(string $code, array<string|int, mixed> $params) : bool
Parameters
- $code : string
-
Restriction code (not used here).
- $params : array<string|int, mixed>
-
Additional params.
Return values
boolisEmailConfirmed()
Returns true if email is successfully confirmed.
public
static isEmailConfirmed(int $siteId) : bool
Parameters
- $siteId : int
-
Site id.
Return values
boolisExportAllowed()
Checks restriction for site export.
public
static isExportAllowed() : bool
Return values
boolisFreeDomainAllowed()
Checks restriction for free domain.
public
static isFreeDomainAllowed(string $code, array<string|int, mixed> $params) : bool
Parameters
- $code : string
-
Restriction code (not used here).
- $params : array<string|int, mixed>
-
Additional params.
Return values
boolisPhoneConfirmed()
Returns true if phone is successfully confirmed.
public
static isPhoneConfirmed(int $siteId) : bool
Parameters
- $siteId : int
-
Site id.
Return values
boolisTermsFooterShow()
Checks showing terms footer.
public
static isTermsFooterShow() : bool
Return values
boolmanageFreeDomains()
System method for deactivate all free domains.
public
static manageFreeDomains(bool $setActive[, int $executeAfterSeconds = 0 ]) : void
Parameters
- $setActive : bool
-
Set domains and sites active / not active.
- $executeAfterSeconds : int = 0
-
Delayed execution (in seconds).
publishByLicenseChange()
public
static publishByLicenseChange() : void
unpublishByScannerLockPortal()
public
static unpublishByScannerLockPortal() : bool