1 | <?php |
||
5 | |||
6 | class ZurlResponse |
||
7 | { |
||
8 | protected $ch; |
||
9 | |||
10 | protected $curlResult; |
||
11 | |||
12 | public function __construct($ch) |
||
17 | |||
18 | public function getResponse() |
||
46 | |||
47 | /** |
||
48 | * @return bool |
||
49 | */ |
||
50 | public function failed() |
||
63 | |||
64 | /** |
||
65 | * @return bool |
||
66 | */ |
||
67 | protected function curlHasResult() |
||
71 | |||
72 | /** |
||
73 | * @param $string |
||
74 | * |
||
75 | * @return bool |
||
76 | */ |
||
77 | protected function isJson($string) |
||
83 | |||
84 | /** |
||
85 | * @param $string |
||
86 | * |
||
87 | * @return bool |
||
88 | */ |
||
89 | protected function isHTML($string) |
||
90 | { |
||
91 | return $string != strip_tags($string) ? true : false; |
||
92 | } |
||
95 |