Location: PHPKode > projects > Blackwolf CMF > projectBlackWolf/lib/Template/TokenParser/Server/System.class.php
<?php

/* Please see the README and LICENSE files. */

/**
 * This class parses variable tokens
 */
class Template_TokenParser_Server_System extends Template_TokenParser_Server {

    protected static function variable($type){
        $a2 = array_key_exists(2,$type) ? $type[2] : NULL;
        switch ($a2) {
            case "version":
                global $_version;
                return $_version;
            case "debug-clock":
                global $__system__;
                return number_format($__system__->get_time(),3);
            case "memory-usage-peak":
                return memory_get_peak_usage();
        }
    }
}

?>
Return current item: Blackwolf CMF