Support_Controller
extends Core_Servant_Properties
in package
Support.
Tags
Table of Contents
Properties
- $instance : mixed
- The singleton instances.
- $_allowedProperties : array<string|int, mixed>
- Allowed object properties
- $_propertiesValues : array<string|int, mixed>
- Properties values
- $_unlimitedProperties : bool
- Object has unlimited number of properties
Methods
- __construct() : mixed
- Constructor.
- addAllowedProperties() : self
- Add additional allowed properties
- addAllowedProperty() : self
- Add additional allowed property
- createTicket() : array<string|int, mixed>|null
- Create ticket
- getSupport() : array<string|int, mixed>|null
- Get support
- instance() : object
- Register an existing instance as a singleton.
- set() : self
- Run when writing data to inaccessible properties
- setSupportOptions() : self
- Set support options
- setUnlimitedProperties() : self
- Set unlimitedProperties
Properties
$instance
The singleton instances.
public
static mixed
$instance
= \NULL
$_allowedProperties
Allowed object properties
protected
array<string|int, mixed>
$_allowedProperties
= array('login', 'contract', 'pin', 'cms_folder', 'php_version', 'mysql_version', 'update_id', 'domain', 'update_server', 'keys', 'protocol')
$_propertiesValues
Properties values
protected
array<string|int, mixed>
$_propertiesValues
= array()
$_unlimitedProperties
Object has unlimited number of properties
protected
bool
$_unlimitedProperties
= \FALSE
Methods
__construct()
Constructor.
public
__construct() : mixed
addAllowedProperties()
Add additional allowed properties
public
addAllowedProperties(array<string|int, mixed> $array) : self
Parameters
- $array : array<string|int, mixed>
-
array of properties' names
Return values
selfaddAllowedProperty()
Add additional allowed property
public
addAllowedProperty(string $property) : self
Parameters
- $property : string
-
property name
Return values
selfcreateTicket()
Create ticket
public
createTicket(string $subject, string $message, string $email[, array<string|int, mixed> $aFiles = array() ]) : array<string|int, mixed>|null
Parameters
- $subject : string
- $message : string
- $email : string
- $aFiles : array<string|int, mixed> = array()
Return values
array<string|int, mixed>|nullgetSupport()
Get support
public
getSupport() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|nullinstance()
Register an existing instance as a singleton.
public
static instance() : object
Return values
objectset()
Run when writing data to inaccessible properties
public
set(string $property, string $value) : self
Parameters
- $property : string
-
property name
- $value : string
-
property value
Return values
selfsetSupportOptions()
Set support options
public
setSupportOptions() : self
Return values
selfsetUnlimitedProperties()
Set unlimitedProperties
public
setUnlimitedProperties([bool $value = TRUE ]) : self
Parameters
- $value : bool = TRUE
-
default TRUR