public function init() { $this->completed = true; $params = zcale_core_path_targets_ServerPath::get_PARAMS(); if ($params->exists("remoteData") === true) { $this->printHtml = false; $this->remoteCall($params->get("remoteData")); } else { if ($params->exists("run") === true) { $_g = $params->get("run"); switch ($_g) { case "js": $this->index->target = 1; $this->index->mainFilePath = "/js" . _hx_string_or_null($this->index->mainFilePath) . ".js"; break; case "fl": $this->index->target = 2; $this->index->mainFilePath = "/swf" . _hx_string_or_null($this->index->mainFilePath) . ".swf"; break; case "tt": $this->index->target = 3; break; default: $this->event->dispatch($this->eventKeys->complete); break; } } else { $this->event->dispatch($this->eventKeys->complete); } } if ($this->printHtml === true) { Sys::hprint($this->index->toString()); } }
static function get_PARAMS_STRING() { if (zcale_core_path_targets_ServerPath::$paramsString === null) { zcale_core_path_targets_ServerPath::$paramsString = php_Web::getParamsString(); if (strlen(zcale_core_path_targets_ServerPath::$paramsString) > 0) { zcale_core_path_targets_ServerPath::$paramsString = "?" . _hx_string_or_null(zcale_core_path_targets_ServerPath::$paramsString); } } return zcale_core_path_targets_ServerPath::$paramsString; }
public function setIframesIndex() { $iframes = new zcale_server_html_views_Iframes(); $params = zcale_core_path_targets_ServerPath::get_PARAMS(); $params->remove("run"); $phpUrl = _hx_string_or_null(zcale_core_path_targets_ServerPath::get_ROOT_URL()) . _hx_string_or_null(zcale_core_path_targets_ServerPath::get_RELATIVE()) . "?" . _hx_string_or_null(zcale_PathTools::paramsToString($params)); $jsUrl = _hx_string_or_null(zcale_core_path_targets_ServerPath::get_ROOT_URL()) . "?run=" . "js" . "&/#!" . _hx_string_or_null(zcale_core_path_targets_ServerPath::get_RELATIVE()) . "?" . _hx_string_or_null(zcale_PathTools::paramsToString($params)); $flashUrl = _hx_string_or_null(zcale_core_path_targets_ServerPath::get_ROOT_URL()) . "?run=" . "fl" . "&/#!" . _hx_string_or_null(zcale_core_path_targets_ServerPath::get_RELATIVE()) . "?" . _hx_string_or_null(zcale_PathTools::paramsToString($params)); $iframes->addIframe($phpUrl)->addIframe($jsUrl)->addIframe($flashUrl); $this->html->head->addStyle("html, body { height: 100%; }"); $this->html->body->add($iframes->toString()); }
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); }