original_string: protected function setCron()
      {
          $interval = (int) $this->config('cron_interval', 24 * 60 * 60);
  
          if (!empty($interval) && (GC_TIME - $this->config('cron_last_run', 0)) > $interval) {
              $url = $this->url('cron', array('key' => $this->config('cron_key', '')));
              $this->setJs("\$(function(){\$.get('$url', function(data){});});", array('position' => 'bottom'));
          }
      }
code: protected function setCron()
      {
          $interval = (int) $this->config('cron_interval', 24 * 60 * 60);
  
          if (!empty($interval) && (GC_TIME - $this->config('cron_last_run', 0)) > $interval) {
              $url = $this->url('cron', array('key' => $this->config('cron_key', '')));
              $this->setJs("\$(function(){\$.get('$url', function(data){});});", array('position' => 'bottom'));
          }
      }
code_tokens: protected function setCron ( ) { $ interval = ( int ) $ this -> config ( 'cron_interval' , 24 * 60 * 60 ) ; if ( ! empty ( $ interval ) && ( GC_TIME - $ this -> config ( 'cron_last_run' , 0 ) ) > $ interval ) { $ url = $ this -> url ( 'cron' , array ( 'key' => $ this -> config ( 'cron_key' , '' ) ) ) ; $ this -> setJs ( "\$(function(){\$.get('$url', function(data){});});" , array ( 'position' => 'bottom' ) ) ; } }
docstring: Set up self-executing CRON
docstring_tokens: Set up self - executing CRON