Esempio n. 1
0
 static function get_FILE_DIR()
 {
     if (zcale_core_path_targets_ServerPath::$fileDir === null) {
         zcale_core_path_targets_ServerPath::$fileDir = _hx_substr(zcale_core_path_targets_ServerPath::get_ROOT_DIR(), strlen($_SERVER["DOCUMENT_ROOT"]), null);
     }
     return zcale_core_path_targets_ServerPath::$fileDir;
 }
Esempio n. 2
0
function zcale_tests_PathTest_0()
{
    $str = "";
    $str .= "\n Path.DIR: " . _hx_string_or_null(zcale_core_path_targets_ServerPath::get_DIR());
    $str .= "\n Path.URL:      " . _hx_string_or_null(zcale_core_path_targets_ServerPath::get_URL());
    $str .= "\n Path.ROOT_URL:  " . _hx_string_or_null(zcale_core_path_targets_ServerPath::get_ROOT_URL());
    $str .= "\n Path.ROOT_DIR: " . _hx_string_or_null(zcale_core_path_targets_ServerPath::get_ROOT_DIR());
    $str .= "\n Path.FILE_DIR: " . _hx_string_or_null(zcale_core_path_targets_ServerPath::get_FILE_DIR());
    $str .= "\n Path.RELATIVE: " . _hx_string_or_null(zcale_core_path_targets_ServerPath::get_RELATIVE());
    $str .= "\n Path.PARAMS_STRING: " . _hx_string_or_null(zcale_core_path_targets_ServerPath::get_PARAMS_STRING());
    $str .= "\n PathTools.paramsToString( Path.PARAMS ): " . _hx_string_or_null(zcale_PathTools::paramsToString(zcale_core_path_targets_ServerPath::get_PARAMS()));
    zcale_Core::trace($str);
}