static function hasExtension($path, $delimiter = null) { if ($delimiter === null) { $delimiter = "/"; } $source = zcale_PathTools::lastElement($path, $delimiter); return _hx_index_of($source, ".", null) > -1; }
public function boot($mainClass) { if ($this->completed === false) { $this->index = new zcale_server_html_views_HtmlIndex(); $this->index->mainFilePath = "/" . _hx_string_or_null(zcale_core_boot_targets_ServerBoot_0($this, $mainClass)); $this->index->set_title(zcale_PathTools::lastElement($this->index->mainFilePath, null)); $this->tracer = $this->index; $this->init(); } else { $this->event->dispatch($this->eventKeys->complete); } }
function zcale_core_web_ModuleLoader_0(&$__hx__this, &$_g, &$moduleSequence, &$path) { $str = null; $str1 = zcale_PathTools::lastElement($path, "."); $str = _hx_substr($str1, 0, 1); return _hx_deref(new EReg("^[A-Z]+\$", ""))->match($str); }