Documentation

pm_License
in package

Panel license keys management class

Tags
since
12.5

Table of Contents

__construct()  : mixed
Main license key id will be used if keyNumber is not specified
getAdditionalKey()  : null|static
Retrieves an additional key for extension
getAdditionalKeysList()  : array<string|int, mixed>|string
Gets list of additional keys data.
getBodyProperty()  : null|string|bool|int
Gets license key's specified inner property.
getExtensionLicenseInfo()  : null|array<string|int, mixed>
Gets extension license information by code.
getMachineIdInfo()  : array<string|int, mixed>
getProperties()  : array<string|int, mixed>
Gets license key's properties.
getProperty()  : null|string|bool|int
Gets license key's specified property.
hasAdditionalKey()  : bool
Checks if an additional license key for extension is present

Methods

__construct()

Main license key id will be used if keyNumber is not specified

public __construct([null|string $keyNumber = null ]) : mixed
Parameters
$keyNumber : null|string = null
Return values
mixed

getAdditionalKey()

Retrieves an additional key for extension

public static getAdditionalKey([string|null $moduleId = null ]) : null|static
Parameters
$moduleId : string|null = null
Return values
null|static

getAdditionalKeysList()

Gets list of additional keys data.

public static getAdditionalKeysList([null|string $productName = null ]) : array<string|int, mixed>|string
Parameters
$productName : null|string = null
Tags
deprecated

use getAdditionalKey method

Return values
array<string|int, mixed>|string

getBodyProperty()

Gets license key's specified inner property.

public getBodyProperty( $propertyName) : null|string|bool|int
Parameters
$propertyName :
Return values
null|string|bool|int

getExtensionLicenseInfo()

Gets extension license information by code.

public getExtensionLicenseInfo( $code) : null|array<string|int, mixed>
Parameters
$code :
Tags
since
17.8
Return values
null|array<string|int, mixed>

getMachineIdInfo()

public getMachineIdInfo() : array<string|int, mixed>
Return values
array<string|int, mixed>

getProperties()

Gets license key's properties.

public getProperties() : array<string|int, mixed>
Tags
throws
pm_Exception
Return values
array<string|int, mixed>

getProperty()

Gets license key's specified property.

public getProperty( $propertyName) : null|string|bool|int
Parameters
$propertyName :
Return values
null|string|bool|int

hasAdditionalKey()

Checks if an additional license key for extension is present

public static hasAdditionalKey([string|null $moduleId = null ]) : bool
Parameters
$moduleId : string|null = null
Return values
bool

Search results