ilateral\SilverStripe\GoogleShoppingFeed\Extensions\Extension
Synopsis
class Extension
extends DataExtension
{
- // methods
- public Image getPrimaryImage()
- public Image getAdditionalImage()
- public array getGoogleCategories()
- public null addCMSFieldsToTabset()
- public Boolean hasCMSSettingsFields()
- public void updateSettingsFields()
- public void updateCMSFields()
- public boolean canIncludeInGoogleShoppingFeed()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Members
private
- $db — array
- $has_one
Methods
public
- addCMSFieldsToTabset() — Single function to add all fields to a tabset
- canIncludeInGoogleShoppingFeed() — Can we add this object to a shopping feed?
- getAdditionalImage() — Simple method to get the additional image for the feed.
- getGoogleCategories() — Get a list of google shopping categories which are formatted as:
- getPrimaryImage() — Simple method to get the primary image for the feed.
- hasCMSSettingsFields() — Functuion to check if the extended object has settings fields in the CMS
- updateCMSFields() — Add the fields to "CMSFields" (if we are not using settings fields).
- updateSettingsFields() — Add these fields to settings fields in the CMS (if it is used)