PHP Класс Horde_Service_Facebook_Request_Graph, horde

Copyright 2009-2014 Horde LLC (http://www.horde.org/)
Автор: Michael J. Rubinsky ([email protected])
Наследование: extends Horde_Service_Facebook_Request_Base
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_endpoint Horde_Url API Endpoint to call.
$_raw string Raw POST data.
$_request The HTTP method to use for this request.

Открытые методы

Метод Описание
__construct ( Horde_Service_Facebook $facebook, string $method = '', array $params = [], array $options = [] ) Const'r
run ( ) : mixed Run this request and return the data.
upload ( array $options = [] ) Perform a multipart/form-data upload.

Описание методов

__construct() публичный Метод

Const'r
public __construct ( Horde_Service_Facebook $facebook, string $method = '', array $params = [], array $options = [] )
$facebook Horde_Service_Facebook The facebook client.
$method string The API method to call.
$params array Any parameters to send.
$options array Additional options: - request (string) The HTTP method to use. DEFAULT: GET

run() публичный Метод

Run this request and return the data.
public run ( ) : mixed
Результат mixed Either raw JSON, or an array of decoded values.

upload() публичный Метод

Perform a multipart/form-data upload.
public upload ( array $options = [] )
$options array An options array: - params: (array) Form parameters to pass - file: (string) Local path to the file

Описание свойств

$_endpoint защищенное свойство

API Endpoint to call.
protected Horde_Url $_endpoint
Результат Horde_Url

$_raw защищенное свойство

Raw POST data.
protected string $_raw
Результат string

$_request защищенное свойство

The HTTP method to use for this request.
protected $_request