PATH:
home
/
letacommog
/
entrepro
/
wp-content
/
plugins
/
content-egg
/
application
/
components
<?php namespace ContentEgg\application\components; /** * ParserModuleConfig abstract class file * * @author keywordrush.com <support@keywordrush.com> * @link http://www.keywordrush.com/ * @copyright Copyright © 2016 keywordrush.com */ abstract class AffiliateParserModuleConfig extends ParserModuleConfig { public function options() { $options = array( 'ttl' => array( 'title' => __('Update by keyword', 'content-egg'), 'description' => __('Lifetime of cache in seconds, after this period products will be updated if you set keyword for updating. 0 - never update', 'content-egg'), 'callback' => array($this, 'render_input'), 'default' => 2592000, 'validator' => array( 'trim', 'absint', ), 'section' => 'default', ), ); if ($this->getModuleInstance()->isItemsUpdateAvailable()) { $options['ttl_items'] = array( 'title' => __('Price update', 'content-egg'), 'description' => __('Time in seconds for updating prices, availability, etc. 0 - never update', 'content-egg'), 'callback' => array($this, 'render_input'), 'default' => 604800, 'validator' => array( 'trim', 'absint', ), 'section' => 'default', ); } $options['update_mode'] = array( 'title' => __('Update mode', 'content-egg'), 'description' => __('If you use update by schedule, for more better results change Wordpress cron on real cron', 'content-egg'), 'callback' => array($this, 'render_dropdown'), 'dropdown_options' => array( 'visit' => __('By page view', 'content-egg'), 'cron' => __('By schedule (cron)', 'content-egg'), 'visit_cron' => __('By page view and by schedule', 'content-egg'), ), 'default' => 'visit', array( 'call' => array($this, 'setCron'), 'message' => __('Cron setup error.', 'content-egg'), ), ); return array_merge( parent::options(), $options ); } public function setCron($value) { return true; } }
[+]
..
[-] VirtualPage.php
[edit]
[-] Module.php
[edit]
[-] ModuleTemplateManager.php
[edit]
[-] ExtraData.php
[edit]
[-] LinkHandler.php
[edit]
[-] FeaturedImage.php
[edit]
[-] Content.php
[edit]
[-] CEWidget.php
[edit]
[-] BlockTemplateManager.php
[edit]
[-] TemplateManager.php
[edit]
[-] Scheduler.php
[edit]
[-] ModuleApi.php
[edit]
[-] ContentProduct.php
[edit]
[-] ModuleConfig.php
[edit]
[-] AffiliateParserModule.php
[edit]
[-] AffiliateParserModuleConfig.php
[edit]
[-] ParserModuleConfig.php
[edit]
[-] ContentManager.php
[edit]
[-] ParserModule.php
[edit]
[-] index.php
[edit]
[-] ContentCoupon.php
[edit]
[-] Config.php
[edit]
[-] Cpa.php
[edit]
[-] WidgetTemplateManager.php
[edit]
[-] iScheduler.php
[edit]
[-] Shortcoded.php
[edit]
[-] ModuleManager.php
[edit]