/usr/share/php/Horde/Service/Facebook/Request/Base.php is in php-horde-service-facebook 2.0.10-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | <?php
/**
* Horde_Service_Facebook_Request:: encapsulate a request to the Facebook API.
*
* Copyright 2009-2017 Horde LLC (http://www.horde.org/)
*
* @author Michael J. Rubinsky <mrubinsk@horde.org>
* @category Horde
* @package Service_Facebook
*/
abstract class Horde_Service_Facebook_Request_Base
{
/**
*
* @var Horde_Service_Facebook
*/
protected $_facebook;
/**
*
* @var Horde_Http_Client
*/
protected $_http;
/**
* The current method being processed.
*
* @var string
*/
protected $_method;
/**
* The method parameters for the current method call.
*
* @var array
*/
protected $_params;
/**
* Const'r
*
* @param Horde_Service_Facebook $facebook
* @param string $method
* @param array $params
*
*/
public function __construct($facebook, $method, array $params = array())
{
$this->_facebook = $facebook;
$this->_http = $facebook->http;
$this->_method = $method;
$this->_params = $params;
}
/**
* Run this request and return the data.
*
* @return array The results of the request.
*
* @throws Horde_Service_Facebook_Exception
*/
abstract public function run();
/**
* Perform a multipart/form-data upload.
*
* @param array $options An options array:
* - params: (array) Form parameters to pass
* - file: (string) Local path to the file
*/
abstract public function upload(array $options = array());
}
|