1 | <?php |
||
33 | class FacebookCurl |
||
34 | { |
||
35 | |||
36 | /** |
||
37 | * @var resource Curl resource instance |
||
38 | */ |
||
39 | protected $curl; |
||
40 | |||
41 | /** |
||
42 | * Make a new curl reference instance |
||
43 | */ |
||
44 | public function init() |
||
48 | |||
49 | /** |
||
50 | * Set a curl option |
||
51 | * |
||
52 | * @param $key |
||
53 | * @param $value |
||
54 | */ |
||
55 | public function setopt($key, $value) |
||
59 | |||
60 | /** |
||
61 | * Set an array of options to a curl resource |
||
62 | * |
||
63 | * @param array $options |
||
64 | */ |
||
65 | public function setoptArray(array $options) |
||
69 | |||
70 | /** |
||
71 | * Send a curl request |
||
72 | * |
||
73 | * @return mixed |
||
74 | */ |
||
75 | public function exec() |
||
79 | |||
80 | /** |
||
81 | * Return the curl error number |
||
82 | * |
||
83 | * @return int |
||
84 | */ |
||
85 | public function errno() |
||
89 | |||
90 | /** |
||
91 | * Return the curl error message |
||
92 | * |
||
93 | * @return string |
||
94 | */ |
||
95 | public function error() |
||
99 | |||
100 | /** |
||
101 | * Get info from a curl reference |
||
102 | * |
||
103 | * @param $type |
||
104 | * |
||
105 | * @return mixed |
||
106 | */ |
||
107 | public function getinfo($type) |
||
111 | |||
112 | /** |
||
113 | * Get the currently installed curl version |
||
114 | * |
||
115 | * @return array |
||
116 | */ |
||
117 | public function version() |
||
121 | |||
122 | /** |
||
123 | * Close the resource connection to curl |
||
124 | */ |
||
125 | public function close() |
||
129 | } |
||
130 |