core/classes/Console.class.php
public function devMode($args){

        if(empty($args[0])){
            $mode = \Disco\manage\Manager::devMode();
            echo 'DEV_MODE : ' . (($mode) ? 'true' : 'false') . PHP_EOL;
            exit;
        }//if
        else if($args[0] != 'true' && $args[0] != 'false'){
            echo 'Mode takes one of two values: true | false' . PHP_EOL . 'Please supply a correct value' . PHP_EOL;
            exit;
        }//if

        \Disco\manage\Manager::devMode(($args[0] == 'true') ? true : false);
        echo 'DEV_MODE now set to: ' . $args[0] . PHP_EOL;

    }
public function devMode($args){

        if(empty($args[0])){
            $mode = \Disco\manage\Manager::devMode();
            echo 'DEV_MODE : ' . (($mode) ? 'true' : 'false') . PHP_EOL;
            exit;
        }//if
        else if($args[0] != 'true' && $args[0] != 'false'){
            echo 'Mode takes one of two values: true | false' . PHP_EOL . 'Please supply a correct value' . PHP_EOL;
            exit;
        }//if

        \Disco\manage\Manager::devMode(($args[0] == 'true') ? true : false);
        echo 'DEV_MODE now set to: ' . $args[0] . PHP_EOL;

    }
public function devMode ( $ args ) { if ( empty ( $ args [ 0 ] ) ) { $ mode = \ Disco \ manage \ Manager :: devMode ( ) ; echo 'DEV_MODE : ' . ( ( $ mode ) ? 'true' : 'false' ) . PHP_EOL ; exit ; } //if else if ( $ args [ 0 ] != 'true' && $ args [ 0 ] != 'false' ) { echo 'Mode takes one of two values: true | false' . PHP_EOL . 'Please supply a correct value' . PHP_EOL ; exit ; } //if \ Disco \ manage \ Manager :: devMode ( ( $ args [ 0 ] == 'true' ) ? true : false ) ; echo 'DEV_MODE now set to: ' . $ args [ 0 ] . PHP_EOL ; }
Get the current dev mode, optionally setting it.

eg: `dev-mode`
eg: `dev-mode true`
eg: `dev-mode false`

@param array $args The arguements.
Get the current dev mode optionally setting it .