Lines Matching refs:result
35 protected $result; variable in FacebookApiException
40 * @param array $result The result from the API server
42 public function __construct($result) { argument
43 $this->result = $result;
45 $code = isset($result['error_code']) ? $result['error_code'] : 0;
47 if (isset($result['error_description'])) {
49 $msg = $result['error_description'];
50 } else if (isset($result['error']) && is_array($result['error'])) {
52 $msg = $result['error']['message'];
53 } else if (isset($result['error_msg'])) {
55 $msg = $result['error_msg'];
69 return $this->result;
79 if (isset($this->result['error'])) {
80 $error = $this->result['error'];
809 $result = json_decode($this->_oauthRequest(
815 if (is_array($result) && isset($result['error_code'])) {
816 $this->throwAPIException($result);
827 return $result;
868 $result = json_decode($this->_oauthRequest(
874 if (is_array($result) && isset($result['error'])) {
875 $this->throwAPIException($result);
880 return $result;
942 $result = curl_exec($ch);
949 $result = curl_exec($ch);
957 if ($result === false && empty($opts[CURLOPT_IPRESOLVE])) {
966 $result = curl_exec($ch);
971 if ($result === false) {
983 return $result;
1248 protected function throwAPIException($result) { argument
1249 $e = new FacebookApiException($result);