Services_Digg
[ class tree: Services_Digg ] [ index: Services_Digg ] [ all elements ]

Source for file Common.php

Documentation is available at Common.php

  1. <?php
  2.  
  3. /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
  4.  
  5. /**
  6.  * API for Digg's web services
  7.  *
  8.  * PHP version 5.1.0+
  9.  *
  10.  * LICENSE: This source file is subject to version 3.0 of the PHP license
  11.  * that is available through the world-wide-web at the following URI:
  12.  * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
  13.  * the PHP License and are unable to obtain it through the web, please
  14.  * send a note to license@php.net so we can mail you a copy immediately.
  15.  *
  16.  * @category    Services
  17.  * @package     Services_Digg
  18.  * @author      Joe Stump <joe@joestump.net>
  19.  * @copyright   1997-2007 The PHP Group
  20.  * @license     http://www.php.net/license/3_0.txt  PHP License 3.0
  21.  * @version     CVS: $Id:$
  22.  * @link        http://pear.php.net/package/Services_Digg
  23.  */
  24.  
  25. /**
  26.  * Services_Digg
  27.  *  
  28.  * @category    Services
  29.  * @package     Services_Digg
  30.  * @author      Joe Stump <joe@joestump.net>
  31.  * @abstract
  32.  */
  33. {
  34.     /**
  35.      * Raw API response
  36.      *
  37.      * @access      protected
  38.      * @var         string      $response       Raw API response
  39.      */
  40.     protected $response = '';
  41.  
  42.     /**
  43.      * __construct
  44.      * 
  45.      * @access      public
  46.      * @param       string      $response       Raw API response
  47.      * @return      void 
  48.      */
  49.     public function __construct($response)
  50.     {
  51.         $this->response = $response;
  52.     }
  53.  
  54.     /**
  55.      * Parse API respone
  56.      *
  57.      * @access      public
  58.      * @return      mixed       PEAR_Error on failure
  59.      * @abstract
  60.      */
  61.     abstract public function parse();
  62. }
  63.  
  64. ?>

Documentation generated on Tue, 04 Dec 2007 15:00:06 -0500 by phpDocumentor 1.4.0. PEAR Logo Copyright © PHP Group 2004.