1 | <?php |
||
16 | class MailxpertCurl |
||
17 | { |
||
18 | /** |
||
19 | * @var resource Curl resource instance |
||
20 | */ |
||
21 | protected $curl; |
||
22 | |||
23 | /** |
||
24 | * Make a new curl reference instance |
||
25 | */ |
||
26 | public function init() |
||
30 | |||
31 | /** |
||
32 | * Set a curl option |
||
33 | * |
||
34 | * @param string $key |
||
35 | * @param mixed $value |
||
36 | */ |
||
37 | public function setopt($key, $value) |
||
41 | |||
42 | /** |
||
43 | * Set an array of options to a curl resource |
||
44 | * |
||
45 | * @param array $options |
||
46 | */ |
||
47 | public function setoptArray(array $options) |
||
51 | |||
52 | /** |
||
53 | * Send a curl request |
||
54 | * |
||
55 | * @return mixed |
||
56 | */ |
||
57 | public function exec() |
||
61 | |||
62 | /** |
||
63 | * Return the curl error number |
||
64 | * |
||
65 | * @return int |
||
66 | */ |
||
67 | public function errno() |
||
71 | |||
72 | /** |
||
73 | * Return the curl error message |
||
74 | * |
||
75 | * @return string |
||
76 | */ |
||
77 | public function error() |
||
81 | |||
82 | /** |
||
83 | * Get info from a curl reference |
||
84 | * |
||
85 | * @param string $type |
||
86 | * |
||
87 | * @return mixed |
||
88 | */ |
||
89 | public function getinfo($type) |
||
93 | |||
94 | /** |
||
95 | * Get the currently installed curl version |
||
96 | * |
||
97 | * @return array |
||
98 | */ |
||
99 | public function version() |
||
103 | |||
104 | /** |
||
105 | * Close the resource connection to curl |
||
106 | */ |
||
107 | public function close() |
||
111 | } |
||
112 |