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


PHP http::release方法代码示例

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


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

示例1: execute

 public function execute()
 {
     http::freeze();
     //a Spirit Cannot send any HTTP Header unless It is used as ResponseService
     $this->engine->executeLogic();
     http::release();
     http::contentType('application/json');
     return json_encode($this->engine->xdo());
 }
开发者ID:neel,项目名称:bong,代码行数:9,代码来源:JSONDeliveryTrait.php

示例2: execute

 public function execute()
 {
     http::freeze();
     //a Spirit Cannot send any HTTP Header unless It is used as ResponseService
     $this->engine->run();
     http::release();
     http::contentType('text/xml');
     return $this->engine->xdo()->toXML()->saveXML();
 }
开发者ID:neel,项目名称:bong,代码行数:9,代码来源:XDODeliveryTrait.php

示例3: call

 /**
  * \virtual
  * @param string $methodName
  * @param array $args
  */
 public function call($methodName, $args = array())
 {
     $this->spiritEngine->setActiveInstance($this->_activeInstanceId);
     http::freeze();
     //a Spirit Cannot send any HTTP Header unless It is used as ResponseService. as the spirit output is embedded in the app output. so its the app that sends the header. not the spirit
     $this->spiritEngine->run($this->spiritName, $methodName, $args);
     http::release();
     //Engine Automatically Clear's the Active Instance Id So no need to call clear Explecitely
     return $this->spiritEngine->response();
 }
开发者ID:neel,项目名称:bong,代码行数:15,代码来源:SpiritAdapter.php

示例4: execute

 public function execute()
 {
     http::freeze();
     //a Spirit Cannot send any HTTP Header unless It is used as ResponseService
     $this->engine->run();
     http::release();
     $xdo = $this->engine->xdo();
     $navigation = $this->engine->getNavigation();
     if (isset($xdo->{$navigation->propertyName})) {
         $value = $xdo->{$navigation->propertyName};
         if (is_array($value) || is_object($value)) {
             http::contentType('application/json');
             return json_encode($value);
         } else {
             http::contentType('text/plain');
             return $value;
         }
     }
     return null;
 }
开发者ID:neel,项目名称:bong,代码行数:20,代码来源:PropertyDeliveryTrait.php


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