\pm_Plan

Service Plan wrapper

Summary

Methods
Properties
Constants
__construct()
getId()
getName()
hasPermission()
hasCorePermission()
getLimit()
getCoreLimit()
getPlanItems()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A

Properties

Methods

__construct()

__construct(integer  $planId) 

Create new plan wrapper

Parameters

integer $planId

getId()

getId() : integer

Retrieve plan id

Returns

integer

getName()

getName() : string

Retrieve plan name

Returns

string

hasPermission()

hasPermission(string  $name) : mixed

Retrieve permission value by name

Parameters

string $name

Permission name

Returns

mixed

hasCorePermission()

hasCorePermission(string  $name) : mixed

Retrieve Plesk core permission value by name

Parameters

string $name

Permission name

Returns

mixed

getLimit()

getLimit(string  $name) : mixed

Retrieve limit value by name

Parameters

string $name

Limit name

Returns

mixed

getCoreLimit()

getCoreLimit(string  $name) : mixed

Retrieve Plesk core limit value by name

Parameters

string $name

Limit name

Returns

mixed

getPlanItems()

getPlanItems() : array

Get included plan items

Returns

array