当前位置: 首页>>代码示例>>PHP>>正文


PHP Sys::hprint方法代码示例

本文整理汇总了PHP中Sys::hprint方法的典型用法代码示例。如果您正苦于以下问题:PHP Sys::hprint方法的具体用法?PHP Sys::hprint怎么用?PHP Sys::hprint使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Sys的用法示例。


在下文中一共展示了Sys::hprint方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: flush

 public function flush()
 {
     if (!$this->_flushedStatus) {
         $this->_flushedStatus = true;
         php_Web::setReturnCode($this->status);
     }
     if (!$this->_flushedCookies) {
         $this->_flushedCookies = true;
         try {
             if (null == $this->_cookies) {
                 throw new HException('null iterable');
             }
             $__hx__it = $this->_cookies->iterator();
             while ($__hx__it->hasNext()) {
                 unset($cookie);
                 $cookie = $__hx__it->next();
                 php_Web::setCookie($cookie->name, $cookie->value, $cookie->expires, $cookie->domain, $cookie->path, $cookie->secure, $cookie->httpOnly);
             }
         } catch (Exception $__hx__e) {
             $_ex_ = $__hx__e instanceof HException ? $__hx__e->e : $__hx__e;
             $e = $_ex_;
             throw new HException(ufront_web_HttpError::internalServerError("Failed to set cookie on response", $e, _hx_anonymous(array("fileName" => "HttpResponse.hx", "lineNumber" => 34, "className" => "sys.ufront.web.context.HttpResponse", "methodName" => "flush"))));
         }
     }
     if (!$this->_flushedHeaders) {
         $this->_flushedHeaders = true;
         if (null == $this->_headers) {
             throw new HException('null iterable');
         }
         $__hx__it = $this->_headers->keys();
         while ($__hx__it->hasNext()) {
             unset($key);
             $key = $__hx__it->next();
             $val = $this->_headers->get($key);
             if ($key === "Content-type" && null !== $this->charset && StringTools::startsWith($val, "text/")) {
                 $val .= "; charset=" . _hx_string_or_null($this->charset);
             }
             try {
                 header(_hx_string_or_null($key) . ": " . _hx_string_or_null($val));
             } catch (Exception $__hx__e) {
                 $_ex_ = $__hx__e instanceof HException ? $__hx__e->e : $__hx__e;
                 $e1 = $_ex_;
                 throw new HException(ufront_web_HttpError::internalServerError("Invalid header: \"" . _hx_string_or_null($key) . ": " . _hx_string_or_null($val) . "\", or output already sent", $e1, _hx_anonymous(array("fileName" => "HttpResponse.hx", "lineNumber" => 50, "className" => "sys.ufront.web.context.HttpResponse", "methodName" => "flush"))));
             }
             unset($val, $e1);
         }
     }
     if (!$this->_flushedContent) {
         $this->_flushedContent = true;
         Sys::hprint($this->_buff->b);
     }
 }
开发者ID:kevinresol,项目名称:mvc-platform-test,代码行数:52,代码来源:HttpResponse.class.php

示例2: onRemoteError

 public function onRemoteError($remote)
 {
     $remote->event->error->addCrumb($this, "remoteCall");
     Sys::hprint(zcale_core_boot_targets_ServerBoot_2($this, $remote));
 }
开发者ID:adrianmm44,项目名称:zcale,代码行数:5,代码来源:ServerBoot.class.php

示例3: updateRecords

 public function updateRecords()
 {
     $naw = new zcale_sys_db_tests_zcale_Naw();
     $sql = null;
     $this1 = null;
     $this2 = null;
     $this3 = null;
     $this4 = null;
     $this4 = zcale_sys_db_tests_DatabaseTest_3($this, $naw, $sql, $this1, $this2, $this3, $this4);
     $str1 = _hx_string_or_null($this4) . " SET " . Std::string($naw->naam) . "=" . _hx_string_or_null(zcale_sys_db_SqlTools::evalValue("Martinez Martinez"));
     $this3 = $str1;
     $str2 = _hx_string_or_null($this3) . " WHERE " . Std::string($naw->naam);
     $this2 = $str2;
     $str3 = _hx_string_or_null($this2) . "=" . _hx_string_or_null(zcale_sys_db_SqlTools::evalValue("Martinez"));
     $this1 = $str3;
     $sql = $this1;
     $this->cnx->request($sql);
     Sys::hprint("<br/>Record updated in " . Std::string($naw) . ": " . _hx_string_or_null($sql));
 }
开发者ID:adrianmm44,项目名称:zcale,代码行数:19,代码来源:DatabaseTest.class.php

示例4: println

 static function println($v)
 {
     Sys::hprint($v);
     Sys::hprint("\n");
 }
开发者ID:kevinresol,项目名称:mvc-platform-test,代码行数:5,代码来源:Sys.class.php


注:本文中的Sys::hprint方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。