コード例 #1
0
ファイル: s_api.php プロジェクト: lianren/framework
 function call($mode = 'response')
 {
     $this->execute_curl_request();
     if ($mode === 'debug') {
         debug::out($this);
     }
     $this->parse_code();
     if ($mode === 'body') {
         $this->parse_body();
         return $this->response_body;
     }
     if ($mode === 'header') {
         $this->parse_header();
         return $this->response_header;
     }
     if ($mode === 'response') {
         $this->parse_header();
         $this->parse_body();
         return array($this->response_header, $this->response_body);
     }
 }
コード例 #2
0
ファイル: function_lib.php プロジェクト: art-youth/framework
function out($dim = 'please input $dim !', $mode = 1, $stop = false)
{
    return debug::out($dim, $mode, $stop);
}
コード例 #3
0
ファイル: common.php プロジェクト: lianren/framework
function out($param = 'please input param', $mode = 1, $is_exit = true)
{
    debug::out($param, $mode, $is_exit);
}