Documentation

pm_Plan
in package

Service Plan wrapper

Tags
since
17.0

Table of Contents

__construct()  : mixed
Create new plan wrapper
getCoreLimit()  : mixed
Retrieve Plesk core limit value by name
getId()  : int
Retrieve plan id
getLimit()  : mixed
Retrieve limit value by name
getName()  : string
Retrieve plan name
getPlanItems()  : array<string|int, mixed>
Get included plan items
hasCorePermission()  : mixed
Retrieve Plesk core permission value by name
hasPermission()  : mixed
Retrieve permission value by name
isResellerPlan()  : bool
Whether current plan is reseller plan

Methods

__construct()

Create new plan wrapper

public __construct(int $planId) : mixed
Parameters
$planId : int
Return values
mixed

getCoreLimit()

Retrieve Plesk core limit value by name

public getCoreLimit(string $name) : mixed
Parameters
$name : string

Limit name

Return values
mixed

getId()

Retrieve plan id

public getId() : int
Return values
int

getLimit()

Retrieve limit value by name

public getLimit(string $name) : mixed
Parameters
$name : string

Limit name

Return values
mixed

getName()

Retrieve plan name

public getName() : string
Return values
string

getPlanItems()

Get included plan items

public getPlanItems() : array<string|int, mixed>
Tags
since
17.0
Return values
array<string|int, mixed>

hasCorePermission()

Retrieve Plesk core permission value by name

public hasCorePermission(string $name) : mixed
Parameters
$name : string

Permission name

Return values
mixed

hasPermission()

Retrieve permission value by name

public hasPermission(string $name) : mixed
Parameters
$name : string

Permission name

Return values
mixed

isResellerPlan()

Whether current plan is reseller plan

public isResellerPlan() : bool
Tags
since
18.0
Return values
bool

Search results