Ejemplo n.º 1
0
 static function hasExtension($path, $delimiter = null)
 {
     if ($delimiter === null) {
         $delimiter = "/";
     }
     $source = zcale_PathTools::lastElement($path, $delimiter);
     return _hx_index_of($source, ".", null) > -1;
 }
Ejemplo n.º 2
0
 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);
     }
 }
Ejemplo n.º 3
0
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);
}