Addon
class
Addon extends AbstractModel implements
ServiceInterface
Traits
DomainTraits
ProvisioningTraits
Properties summary
Type | Property | Description | |
---|---|---|---|
protected | $table | ||
protected | $columnMap | ||
protected | $dates | ||
protected | $appends |
Methods summary
Return Type | Method Name | Description | |
---|---|---|---|
Service | getServiceActual() | - | |
Service | getServiceSurrogate() | - | |
bool | hasServiceSurrogate() | - | |
Client | getServiceClient() | - | |
Properties | getServiceProperties() | - | |
static | boot() | - | |
Builder | scopeUserId(Builder $query, int $userId) | - | |
Builder | scopeOfService(Builder $query, integer $serviceId) | - | |
Builder | scopeActive(Builder $query) | - | |
Builder | scopeMarketConnect(Builder $query) | Filter for only MarketConnect addon services. | |
Builder | scopeIsConsideredActive(Builder $query) | - | |
Builder | scopeIsNotRecurring(Builder $query) | - | |
BelongsTo | service() | Each addon belongs to one service. | |
BelongsTo | productAddon() | Each addon belongs to a single product addon. | |
BelongsTo | client() | Each addon belongs to one client. | |
HasMany|CustomFieldValue | customFieldValues() | - | |
getCustomFieldType() | - | ||
getCustomFieldRelId() | - | ||
BelongsTo | order() | An addon belongs to a single order. | |
HasMany | paymentGateway() | Each addon has many payment gateway records. | |
Properties | getServicePropertiesAttribute() | - | |
HasMany | ssl() | Each addon could have many ssl records. | |
BelongsToMany | invoices() | - | |
bool | canBeUpgraded() | Determine if addon can be upgraded. | |
bool | isService() | Is this entity a service? | |
bool | isAddon() | Is this entity an addon? | |
HasOne | serverModel() | - | |
HasMany | failedActions() | - | |
HasMany | moduleConfiguration() | - | |
string | legacyProvision() | Run provision action in legacy mode. | |
bool | isRecurring() | - | |
getLink() | - | ||
float | recalculateRecurringPrice() | - | |
string | getProvisioningTypeAttribute() | - |
Details
Service
getServiceActual ()
Service
getServiceSurrogate ()
bool
hasServiceSurrogate ()
Client
getServiceClient ()
Properties
getServiceProperties ()
static
boot ()
Builder
scopeUserId (Builder $query, int $userId)
Builder
scopeOfService (Builder $query, integer $serviceId)
Builder
scopeActive (Builder $query)
Builder
scopeMarketConnect (Builder $query)
Filter for only MarketConnect addon services.
Builder
scopeIsConsideredActive (Builder $query)
Builder
scopeIsNotRecurring (Builder $query)
BelongsTo
service ()
Each addon belongs to one service.
BelongsTo
productAddon ()
Each addon belongs to a single product addon.
BelongsTo
client ()
Each addon belongs to one client.
HasMany|CustomFieldValue
customFieldValues ()
protected
getCustomFieldType ()
protected
getCustomFieldRelId ()
BelongsTo
order ()
An addon belongs to a single order.
HasMany
paymentGateway ()
Each addon has many payment gateway records.
Properties
getServicePropertiesAttribute ()
HasMany
ssl ()
Each addon could have many ssl records.
BelongsToMany
invoices ()
bool
canBeUpgraded ()
Determine if addon can be upgraded.
bool
isService ()
Is this entity a service?
bool
isAddon ()
Is this entity an addon?
HasOne
serverModel ()
HasMany
failedActions ()
HasMany
moduleConfiguration ()
string
legacyProvision ()
Run provision action in legacy mode.
Legacy mode returns 'success' on success and an error message string on failure.