Sunnysideup\EcommerceTrademe\Extensions\ProductTradeMeExtension
### @@@@ START REPLACEMENT @@@@ ### WHY: automated upgrade OLD: extends Extension (ignore case) NEW: extends Extension (COMPLEX) EXP: Check for use of $this->anyVar and replace with $this->anyVar[$this->getOwner()->ID] or consider turning the class into a trait ### @@@@ STOP REPLACEMENT @@@@ ###.
Synopsis
class ProductTradeMeExtension
extends Extension
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $owns = ;
- private static array $indexes = ;
- private static string $trademe_group = '';
- private static string $trade_me_intro = '';
- private static integer $trade_me_title_char_limit = 50;
- private static integer $trade_me_title_description_limit = 2048;
- // methods
- public void updateCMSFields()
- public void getCalculatedTradeMeCategory()
- public void CalculatedTradeMeCategoryWithDefaultAndAdjustments()
- public void getTradeMeTitle()
- public void getTradeMeContent()
Hierarchy
Extends
- SilverStripe\Core\Extension
Members
private
- $db
—
array
stadard SS declaration. - $has_one
—
array
stadard SS declaration. - $indexes
—
array
stadard SS declaration. - $owns
- $trade_me_intro
—
string
to identify. - $trade_me_title_char_limit — int
- $trade_me_title_description_limit — int
- $trademe_group
—
string
to identify.
Methods
public
- CalculatedTradeMeCategoryWithDefaultAndAdjustments() — returns the right trade me category.
- getCalculatedTradeMeCategory() — looks at TradeMe Category from the product itself and it not found goes up the line (parent , parent.parent, etc...) to find the applicable trade me category.
- getTradeMeContent()
- getTradeMeTitle() — returns the title of the product for TradeMe.
- updateCMSFields() — stadard SS method.