Skip to content
Last updated

Class Reference (WHMCS 9.0)

Reference for WHMCS's developer-facing model classes.

WHMCS

WHMCS\Announcement

WHMCS\Authentication

  • CurrentUser — Utility class for assessing the authentication state or identity of the current actor

WHMCS\Billing

WHMCS\Billing\Invoice

  • Item — Invoice line items Each invoice is made up of individual line items.

WHMCS\Billing\Payment

  • DisputeInterface — DisputeInterface is used as part of the WHMCS\Billing\Payment\Dispute object to ensure that all required methods are present for output.
  • Transaction — A payment transaction.

WHMCS\Billing\Payment\Dispute

WHMCS\Billing\Payment\Transaction

  • Information — The information class is used to provide additional data for a transaction from a gateway module.

WHMCS\Billing\Quote

  • Item — Quote line items Each quote is made up of individual line items, like an Invoice.

WHMCS\Billing\VAT

WHMCS\Billing\VAT\Verification

WHMCS\Cart\Item

WHMCS\Config

  • Setting — An individual setting stored in the tblconfiguration table.

WHMCS\CustomField

WHMCS\Domain

  • AdditionalField — Domain additional fields.
  • Domain — A customer's domain.
  • Extra — Used to store information related to the domain that is not an additional field.

WHMCS\Domain\Registrar

  • Domain — Store information regarding the domain that can be used within the product without requiring additional Registrar calls.

WHMCS\Domains\DomainLookup

  • ResultsList
  • SearchResult — Search results from a domain lookup query Contains the data of a domain and information about it potential availability Also can potentially get a list of like-domain suggests

WHMCS\Domains\Pricing

  • Premium — Pricing markup for premium domains

WHMCS\Download

  • Category — A download category All files available for download in WHMCS must be within at least one Category.
  • Download — A downloadable file.

WHMCS\Log

WHMCS\Mail

  • Message — An Email Message Messages are sent out for various reasons, including for events such as invoice creation and Email Campaigns.
  • Template — Functionality related to mail templates.

WHMCS\Module

WHMCS\Module\Addon

WHMCS\Module\Contracts

WHMCS\Module\Gateway

  • BalanceCollection — The BalanceCollection object is used to return data through a gateway module to display balance information on the Transactions List page in the WHMCS Admin area.
  • BalanceInterface — BalanceInterface is used as part of the WHMCS\Module\Gateway\Balance object to ensure that all required methods are present for output.

WHMCS\Module\MailSender

WHMCS\Module\Notification

  • DescriptionTrait — Collection of behaviors common to all notification modules that help fulfill \WHMCS\Notification\Notification\NotificationModuleInterface

WHMCS\Module\Server

WHMCS\Network

WHMCS\Notification

  • Rule — A notification rule.

WHMCS\Notification\Contracts

WHMCS\Product

  • Addon — tbladdons model class
  • Group — A product group A product group contains one or more order-able products and determines how those products are displayed in order forms to clients.
  • Product — A product A product represents a sellable item in WHMCS.

WHMCS\Product\Pricing

  • Price — Price per cycle formatting helper

WHMCS\Scheduling\Task

WHMCS\Service

  • Addon — Service addons Please note that "Service Addons" are completely separate from "WHMCS Addons," which add functionality to WHMCS.
  • CancellationRequest — A service cancellation request Should a Client decide to cancel a Service, they create a CancellationRequest.
  • Service — A client-owned service.

WHMCS\UsageBilling\Contracts\Metrics

WHMCS\UsageBilling\Metrics

WHMCS\UsageBilling\Metrics\Units

WHMCS\User

  • Admin — An administrative user An administrative user is responsible for operation and maintenance of a WHMCS installation.
  • AdminLog — An administrative user login Each log entry in this table represents a single login session for an administrative user.
  • Alert — A user level alert Alerts are intended to be displayed in the product as quick notifications generated on the fly for WHMCS users.
  • Client — A client user.

WHMCS\User\Client

  • Affiliate — Client affiliate information If a WHMCS operator turns on the affiliate payment system, then a client account can become an affiliate.
  • Contact — A client contact Client users may have more than one set of contact information on their account.
  • Group — A Client Group.

WHMCS\View\Formatter

  • Price — Price Formatter.

WHMCS\View\Menu

  • Item — An item in one of WHMCS's client area menus.

WHMCS\View\Template