Skip to content
This repository
tag: 1.1.1
Fetching contributors…

Cannot retrieve contributors at this time

file 38 lines (36 sloc) 0.687 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
<?php
/**
* Piwik - Open source web analytics
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
* @version $Id$
*
* @category Piwik_Plugins
* @package Piwik_CoreAdminHome
*/

/**
*
* @package Piwik_CoreAdminHome
*/
class Piwik_CoreAdminHome_API
{
static private $instance = null;
static public function getInstance()
{
if (self::$instance == null)
{
self::$instance = new self;
}
return self::$instance;
}

/**
* Will run all scheduled tasks due to run at this time.
* @return void
*/
public function runScheduledTasks()
{
Piwik::checkUserIsSuperUser();
return Piwik_TaskScheduler::runTasks();
}
}
Something went wrong with that request. Please try again.