/usr/share/php/Horde/Service/Twitter/Auth.php is in php-horde-service-twitter 2.1.1-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 | <?php
/**
* Horde_Service_Twitter_Auth_* classes to abstract all auth related tasks for
* various auth mechanisms.
*
* Copyright 2009-2013 Horde LLC (http://www.horde.org/)
*
* @author Michael J. Rubinsky <mrubinsk@horde.org>
* @license http://www.horde.org/licenses/bsd BSD
* @category Horde
* @package Service_Twitter
*/
abstract class Horde_Service_Twitter_Auth
{
/**
*
* @var Horde_Service_Twitter
*/
protected $_twitter;
/**
* Configuration parameters
*
* @param array
*/
protected $_config;
public function setTwitter(Horde_Service_Twitter $twitter)
{
$this->_twitter = $twitter;
}
/**
* Getter
*
* @param string $value
*
* @return mixed The value of the requested property.
* @throws Horde_Service_Twitter_Exception
*/
public function __get($value)
{
if (!empty($this->_config[$value])) {
return $this->_config[$value];
}
throw new Horde_Service_Twitter_Exception(sprintf("The property %s does not exist", $value));
}
}
|