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

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

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

    protected static function parse_path($type) {
        $a2 = array_key_exists(2,$type) ? $type[2] : NULL;
        switch ($a2) {
            case "client":
                return CLI_DIR;
            case "library":
                return LIB_DIR;
            case "visible":
                return VIS_DIR;
            default:
                return "/";
        }
    }
}

?>
Return current item: Blackwolf CMF