Blesta Source Documentation

WhmcsServices

Table of Contents

Methods

__construct()
get() Fetch all standard services
getAddons() Fetch all addon services
getConfigOptions() Fetch all config options
getCustomFields() Fetch all custom fields for an specific service
getDomainLogicboxesOrderId() Fetches the order ID from a logicboxes domain
getDomains() Fetch all domain-name services
getTerm() Coverts term name into actual term/period
Methods

__construct()

public __construct(Record $remote) : mixed
Parameters
$remote : Record

get()

Fetch all standard services

public get() : PDOStatement
Return values
PDOStatement

getAddons()

Fetch all addon services

public getAddons() : PDOStatement
Return values
PDOStatement

getConfigOptions()

Fetch all config options

public getConfigOptions() : PDOStatement
Return values
PDOStatement

getCustomFields()

Fetch all custom fields for an specific service

public getCustomFields(int $relid) : array<string|int, mixed>
Parameters
$relid : int

The ID of the service

Return values
array<string|int, mixed>

An array containing the custom fields for the service

getDomainLogicboxesOrderId()

Fetches the order ID from a logicboxes domain

public getDomainLogicboxesOrderId(string $domain) : array<string|int, mixed>
Parameters
$domain : string

The domain name from logicboxes to fetch the order ID

Return values
array<string|int, mixed>

An array containg the order id

getDomains()

Fetch all domain-name services

public getDomains() : PDOStatement
Return values
PDOStatement

getTerm()

Coverts term name into actual term/period

public getTerm(mixed $term_name) : array<string|int, mixed>
Parameters
$term_name : mixed

The term name (e.g. "Monthly", "Semi-Annually", etc.), or an integer representing the number of years

Return values
array<string|int, mixed>

An array of key/value pairs including:

  • term The term
  • period The period

        
On this page

Search results