kritbit

kritbit Git Source Tree


Root/web/application/models/Jobs.php

<?php
 
namespace application\models;
 
class Jobs extends \system\engine\HF_Model {
    public $jobName;
    public $runType;
    public $runScript;
    public $cron;
    public $failScript;
    public $last_run;
    public $last_result;
    public $user_id;
    public $api_key;
    public $view_private;
 
    public $h2o_safe = true;
 
    public function getRunType() {
        switch ($this->runType) {
            case "1":
                return "Ran by Kritbit";
                break;
            case "2":
                return "External Source";
                break;
        }
        return "";
    }
 
    public function getLastRun() {
        if ($this->last_run == "") {
            return "Never";
        } else {
            return $this->last_run;
        }
 
    }
}

Archive Download this file

Branches

Number of commits:
Page rendered in 0.07627s using 11 queries.