/usr/share/php/Horde/Service/UrlShortener/Base.php is in php-horde-service-urlshortener 2.0.2-5.
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 | <?php
/**
* This file contains the Horde_Service_UrlShortener class for shortening URLs.
*
* Copyright 2011-2015 Horde LLC (http://www.horde.org/)
*
* See the enclosed file COPYING for license information (LGPL). If you
* did not receive this file, see http://www.horde.org/licenses/lgpl21.
*
* @author Michael J Rubinsky <mrubinsk@horde.org>
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
* @category Horde
* @package Service_UrlShortener
*/
/**
* Horde_Service_UrlShortener Base class
*
* @author Michael J Rubinsky <mrubinsk@horde.org>
* @category Horde
* @package Service_UrlShortener
*/
abstract class Horde_Service_UrlShortener_Base
{
/**
* @var array
*/
protected $_params;
/**
* @var Horde_Http_Client
*/
protected $_http;
/**
* Constructor
*
* @param Horde_Http_Client $http [description]
* @param array $params = array() [description]
*
* @return Horde_UrlShorten
*/
public function __construct(Horde_Http_Client $http, $params = array())
{
$this->_http = $http;
$this->_params = $params;
}
abstract public function shorten($url);
}
|