PHP Classes

File: app/commands/JackCLI.php

Recommend this page to a friend!
  Classes of Brett Dutton   JackBooted PHP Framework   app/commands/JackCLI.php   Download  
File: app/commands/JackCLI.php
Role: Class source
Content type: text/plain
Description: Class source
Class: JackBooted PHP Framework
Web application framework using simplified MVC
Author: By
Last change:
Date: 8 years ago
Size: 696 bytes
 

Contents

Class file image Download
<?php

namespace App\Commands;

use \
Jackbooted\Config\Cfg;
use \
Jackbooted\Config\Config;

class
JackCLI extends \Jackbooted\Html\WebPage {

    public static function
init () {
       
self::$log = \Jackbooted\Util\Log4PHP::logFactory ( __CLASS__ );
    }

    public function
version()
    {
        return
Cfg::get( 'build_version', 'No Version info' );
    }
    public function
checkSystem()
    {
       
// Check the queue sizes
        // Check the last readings from the PDUs
        // Checks for stuck jobs
        // Removes old log entries
       
return "Ok";
    }


    public function
setVar()
    {
        global
$argv;
        echo
Config::put( $argv[2], $argv[3] );
    }
}