FeedGenerator
in package
Table of Contents
Constants
- CRON_ACTION_PREFIX = 'wsc_generate_flixmedia_feed_daily'
Properties
- $country : string
- $cronActionName : string
- $file_path : string
- $locale : string
- $localeID : string
- $staticBanner : array<string|int, mixed>
Methods
- __construct() : mixed
- generateFeed() : void
- Method to generate the full XML feed for the given products
- getSharpBannerData() : array<string|int, mixed>
- Získa nastavenia Flixmedia static banneru zo systému WscSettings.
- scheduleCron() : void
- arrayToXml() : SimpleXMLElement
- Converts array data to XML.
- getCronActionName() : string
- unscheduleCron() : void
- Remove Flixmedia feed cron hooks, optionally keeping the current one.
Constants
CRON_ACTION_PREFIX
private
mixed
CRON_ACTION_PREFIX
= 'wsc_generate_flixmedia_feed_daily'
Properties
$country
private
string
$country
$cronActionName
private
string
$cronActionName
$file_path
private
string
$file_path
$locale
private
string
$locale
$localeID
private
string
$localeID
$staticBanner
private
static array<string|int, mixed>
$staticBanner
Methods
__construct()
public
__construct() : mixed
generateFeed()
Method to generate the full XML feed for the given products
public
generateFeed() : void
getSharpBannerData()
Získa nastavenia Flixmedia static banneru zo systému WscSettings.
public
static getSharpBannerData() : array<string|int, mixed>
Hodnoty jednotlivých polí sa vracajú ako asociatívne pole. Ak niektoré nastavenie nie je vyplnené, jeho hodnota bude prázdny string.
Return values
array<string|int, mixed> —Associatívne pole s kľúčmi: title, subtitle, text, link_text, link_url, image_url, logo_url
scheduleCron()
public
scheduleCron() : void
arrayToXml()
Converts array data to XML.
private
arrayToXml(array<string|int, mixed> $data[, SimpleXMLElement $xmlElement = null ]) : SimpleXMLElement
Parameters
- $data : array<string|int, mixed>
- $xmlElement : SimpleXMLElement = null
Return values
SimpleXMLElementgetCronActionName()
private
static getCronActionName(string $locale, string $country) : string
Parameters
- $locale : string
- $country : string
Return values
stringunscheduleCron()
Remove Flixmedia feed cron hooks, optionally keeping the current one.
private
unscheduleCron([string|null $keepActionName = null ]) : void
Parameters
- $keepActionName : string|null = null