APP_Listing_General_Addon
A Basic Listing Addon class.
Package
Description Description
Uses Listing module type as reference to object. Retrieves Addon properties from the Listing Options object.
Methods Methods
- __construct — Construct Listing Addon object
- __get — Magic method: $addon->arg
- __set — Magic setter
- activate — Activates addon.
- apply — Adds addon to an order item.
- connect — Connect Plan object to Addon.
- get_duration — Retrieves addon duration in days.
- get_period — Retrieves addon duration in other time units, like months or years.
- get_period_text — Generates period text.
- get_period_type — Retrieves period type (D, W, M, Y).
- get_price — Retrieves addon price.
- get_purchase_option — Generates purchase addon option HTML.
- get_ref_object — Retrieves the referenced object.
- get_title — Retrieves an addon title.
- get_type — Retrieves an addon type.