public function execute() {
        global $CFG;
        require_once($CFG->dirroot . '/repository/lib.php');

        $instances = \repository::get_instances(['type' => 'dropbox']);
        foreach ($instances as $instance) {
            $instance->cron();
        }
    }
public function execute() {
        global $CFG;
        require_once($CFG->dirroot . '/repository/lib.php');

        $instances = \repository::get_instances(['type' => 'dropbox']);
        foreach ($instances as $instance) {
            $instance->cron();
        }
    }
public function execute ( ) { global $ CFG ; require_once ( $ CFG -> dirroot . '/repository/lib.php' ) ; $ instances = \ repository :: get_instances ( [ 'type' => 'dropbox' ] ) ; foreach ( $ instances as $ instance ) { $ instance -> cron ( ) ; } }
Run dropbox repository cron.
Run dropbox repository cron .