Overview

Packages

  • blesta
    • app
      • controllers
      • models
    • components
      • auth
        • ldap
        • motp
        • oath
      • delivery
        • interfax
        • postal
          • methods
      • download
      • email
      • events
      • exchange
        • rates
          • currency
            • layer
          • fixer
          • open
            • exchange
              • rates
          • x
            • rates
      • gateway
        • payments
      • gateways
      • invoice
        • delivery
        • templates
          • perforated
            • invoice
          • quickbooks
            • invoice
          • templates
            • default
      • modules
      • net
        • amazon
          • s3
        • http
        • net
          • geo
            • ip
      • plugins
      • reports
        • aging
          • invoices
        • client
          • data
            • portability
        • custom
          • report
        • invoice
          • creation
        • package
          • revenue
        • tax
          • liability
        • transactions
          • applied
          • received
      • security
      • session
        • cart
      • settingscollection
      • upgrades
        • tasks
      • upload
      • vcard
    • core
      • Automation
        • Tasks
          • Common
          • Task
        • Type
          • Common
          • Cron
      • Pricing
        • ItemComparator
        • MetaItem
        • Modifier
          • Type
            • Description
              • Type
                • Discount
                • Option
                • Service
                • Tax
            • Discount
            • Price
            • Proration
        • Presenter
          • Build
            • Invoice
            • InvoiceData
            • Options
            • Service
            • ServiceChange
            • ServiceData
          • Collection
          • Format
            • Fields
            • Type
              • Discount
              • Item
              • Option
              • Options
              • Package
              • Pricing
              • Service
              • Tax
          • Items
            • Invoice
            • Service
          • Type
      • ServiceProviders
      • Util
        • Captcha
          • Captchas
          • Common
        • Common
          • Traits
        • Events
          • Common
          • Handlers
          • Observers
        • Filters
          • Common
        • GeoIp
        • Input
          • Fields
            • Common
        • Tax
        • Widgets
    • helpers
      • currency
        • format
      • data
        • structure
          • array
          • string
      • text
        • parser
      • widget
        • client
  • minPHP
    • helpers
      • color
      • data
        • structure
  • None
  • PHP

Classes

  • AbstractServiceDataBuilder
  • ServiceDataBuilder

Interfaces

  • ServiceDataBuilderInterface
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

Class ServiceDataBuilder

Service data builder

Blesta\Core\Pricing\Presenter\Build\Options\AbstractOptions implements Blesta\Core\Pricing\Presenter\Build\Options\OptionsInterface
Extended by Blesta\Core\Pricing\Presenter\Build\ServiceData\AbstractServiceDataBuilder implements Blesta\Core\Pricing\Presenter\Build\ServiceData\ServiceDataBuilderInterface
Extended by Blesta\Core\Pricing\Presenter\Build\ServiceData\ServiceDataBuilder
Namespace: Blesta\Core\Pricing\Presenter\Build\ServiceData
Package: blesta\core\Pricing\Presenter\Build\ServiceData
Copyright: Copyright (c) 2019, Phillips Data, Inc.
License: The Blesta License Agreement
Link: Blesta
Located at core/Pricing/Presenter/Build/ServiceData/ServiceDataBuilder.php
Methods summary
public Blesta\Core\Pricing\Presenter\Type\ServiceDataPresenter
# build( array $vars, stdClass $package, stdClass $pricing, array $options )

Retrieve a ServiceDataPresenter

Retrieve a ServiceDataPresenter

Parameters

$vars

An array of input data, including:

  • pricing_id The ID of the selected package pricing
  • qty The service quantity (default 1)
  • override_price The new override price
  • override_currency The new override currency
  • configoptions An array of config options where each key is the option ID and the value is the selected option value
$package

An stdClass object representing the package selected for use, including:

  • id The package ID
  • name The package's name
  • taxable 1 or 0, whether the package is taxable
  • prorata_day The package pro rata day
  • prorata_cutoff The package pro rata cutoff day
$pricing

An stdClass object representing the selected package pricing, including:

  • id The package pricing ID
  • package_id The package ID
  • term The pricing term
  • period The pricing period
  • setup_fee The pricing setup fee
  • cancel_fee The pricing cancelation fee
  • currency The pricing currency
$options

An array of stdClass objects representing all package options, each including:

  • id The option ID
  • label The option label
  • name The option name
  • type The option type
  • values An array of stdClass objects representing each option value, including:
    • id The option value ID
    • option_id The option ID
    • value The option value
    • min The minimum value
    • max The maximum value
    • step The step value
    • pricing An array whose first index contains an stdClass object representing the option value pricing, including:
      • id The option value pricing ID
      • pricing_id The pricing ID
      • option_value_id The option value ID
      • term The pricing term
      • period The pricing period
      • price The option value price
      • setup_fee The option value setup fee
      • cancel_fee The option value cancelation fee
      • currency The option value currency

Returns

Blesta\Core\Pricing\Presenter\Type\ServiceDataPresenter
An instance of the ServiceDataPresenter
Methods inherited from Blesta\Core\Pricing\Presenter\Build\ServiceData\AbstractServiceDataBuilder
__construct()
Methods inherited from Blesta\Core\Pricing\Presenter\Build\Options\AbstractOptions
discounts(), formatDiscounts(), formatOptions(), formatSettings(), formatTaxes(), options(), settings(), taxes()
Properties inherited from Blesta\Core\Pricing\Presenter\Build\ServiceData\AbstractServiceDataBuilder
$formatFactory, $itemFactory, $presenterFactory, $pricingFactory, $serviceFactory
Properties inherited from Blesta\Core\Pricing\Presenter\Build\Options\AbstractOptions
$discounts, $options, $settings, $taxes
Blesta API documentation generated by ApiGen