$_context
$_context :
__construct(\cn\gz53\framework\core\Context $context)
\cn\gz53\framework\core\Context | $context |
getInstance(\cn\gz53\framework\core\Context $context)
\cn\gz53\framework\core\Context | $context |
resError(\cn\gz53\framework\core\IError $error)
\cn\gz53\framework\core\IError | $error |
getHeaderInfo(\cn\gz53\framework\dao\header\HttpHeaderInfoGetDaoI $bo)
\cn\gz53\framework\dao\header\HttpHeaderInfoGetDaoI | $bo |
<?php
/**
* // +----------------------------------------------------------------------
* // | phpMore [ WE CAN DO IT MORE ]
* // +----------------------------------------------------------------------
* // | Copyright (c) 20011~2019 广州务商网络科技有限公司 All rights reserved.
* // +----------------------------------------------------------------------
* // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
* // +----------------------------------------------------------------------
* // | Author: sujunli <4297088@qq.com>
* // +----------------------------------------------------------------------
*/
namespace cn\gz53\framework\dao\header;
use cn\gz53\framework\dao\Dao;
use cn\gz53\framework\model\po\header\HttpHeaderInfoGetPo;
use cn\gz53\framework\sdk\header\HttpHeaderSdk;
class HttpHeaderDao extends Dao
{
public function getHeaderInfo(HttpHeaderInfoGetDaoI $bo){
$po = HttpHeaderInfoGetPo::getInstance($this->_context);
$httpHeaderSdk = HttpHeaderSdk::getInstance($this->_context);
$po->setHeader($bo->getHttpHeader());
if($httpHeaderSdk->getHeaderInfo($po)){
return false;
}
$bo->setHttpHeaderInfo($po->getHeaderInfo());
return true;
}
}