예제 #1
0
 public function toString()
 {
     $html = "<!DOCTYPE html>";
     $html .= "\n" . "<html lang=\"" . "en" . "\">";
     $html .= _hx_string_or_null($this->head->toString());
     $_g = 0;
     $_g1 = $this->scripts;
     while ($_g < $_g1->length) {
         $script = $_g1[$_g];
         ++$_g;
         if ($script->path !== null) {
             $this->body->add("<script type=\"text/javascript\" src=\"" . _hx_string_or_null($script->path) . "\"></script>");
         } else {
             $this->body->add("<script type=\"text/javascript\">" . _hx_string_or_null($script->code) . "</script>");
         }
         unset($script);
     }
     if ($this->swfobjects->length > 0) {
         $this->body->add("<script type=\"text/javascript\" src=\"" . "/js" . "swfobject.js\"></script>");
         $this->body->add("<script type=\"text/javascript\">");
         $_g2 = 0;
         $_g11 = $this->swfobjects;
         while ($_g2 < $_g11->length) {
             $swfobject = $_g11[$_g2];
             ++$_g2;
             $this->body->add("\t" . "swfobject.embedSWF(\"" . _hx_string_or_null($swfobject->path) . "\", \"" . _hx_string_or_null($swfobject->id) . "\", \"" . _hx_string_or_null($swfobject->width) . "\", \"" . _hx_string_or_null($swfobject->height) . "\", \"" . "9" . "\", \"" . "/swf" . "expressInstall.swf\", " . _hx_string_or_null(haxe_Json::phpJsonEncode($swfobject->flashvars, null, null)) . " );");
             unset($swfobject);
         }
         $this->body->add("</script>");
     }
     $html .= _hx_string_or_null($this->body->toString());
     $html .= "\n" . "</html>";
     return $html;
 }
예제 #2
0
function zcale_core_boot_targets_ServerBoot_2(&$__hx__this, &$remote)
{
    $obj = zcale_core_events_AsyncData::toObject($remote->eventData);
    return haxe_Json::phpJsonEncode($obj, null, null);
}
예제 #3
0
 static function dump($d)
 {
     if (!S::$headerSent) {
         header("Content-Type" . ": " . "application/json");
         S::$headerSent = true;
     }
     php_Lib::println(haxe_Json::phpJsonEncode($d, null, null));
 }
예제 #4
0
 static function stringify($value, $replacer = null)
 {
     return haxe_Json::phpJsonEncode($value);
 }