Exemplo n.º 1
0
 public static function diagnostics()
 {
     if (class_exists('\\Modules\\Factory')) {
         \Modules\Models\Conditions::register('\\Shop\\ModuleConditions\\Orders', array('title' => 'Orders', 'icon' => 'fa fa-shopping-cart', 'type' => 'shop', 'slug' => 'shop-orders'));
     }
     $settings = \Shop\Models\Settings::fetch();
     // TODO When did we last pull down the currency list?
     if (empty($settings->currencies_last_refreshed) || $settings->currencies_last_refreshed < time() - 24 * 60) {
         /*
         \Dsc\Queue::task('\Shop\Models\Currencies::refresh', array(), array(
             'title' => 'Refresh currencies from OpenExchangeRates.org'
         ));
         */
     }
     // TODO When did we last pull down the exchange rates?
     if (empty($settings->exchangerates_last_refreshed) || $settings->exchangerates_last_refreshed < time() - 24 * 60) {
     }
 }
Exemplo n.º 2
0
 /**
  * Runs before all global_apps
  * 
  * @param unknown $app
  */
 protected function preBase($app)
 {
     if (class_exists('\\Modules\\Factory')) {
         \Modules\Models\Conditions::register('\\Activity\\ModuleConditions\\Visits', array('title' => 'Visits', 'icon' => 'fa fa-bolt', 'type' => 'activity', 'slug' => 'activity-visits'));
     }
 }