sfPearRest10.class.php 849 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /*
  3. * This file is part of the symfony package.
  4. * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
  5. *
  6. * For the full copyright and license information, please view the LICENSE
  7. * file that was distributed with this source code.
  8. */
  9. require_once 'PEAR/REST/10.php';
  10. /**
  11. * sfPearRest10 interacts with a PEAR channel that supports REST 1.0.
  12. *
  13. * @package symfony
  14. * @subpackage plugin
  15. * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  16. * @version SVN: $Id: sfPearRest10.class.php 5250 2007-09-24 08:11:50Z fabien $
  17. */
  18. class sfPearRest10 extends PEAR_REST_10
  19. {
  20. /**
  21. * @see PEAR_REST_10
  22. */
  23. public function __construct($config, $options = array())
  24. {
  25. $class = isset($options['base_class']) ? $options['base_class'] : 'sfPearRest';
  26. $this->_rest = new $class($config, $options);
  27. }
  28. }