sfPearRest11.class.php 849 B

1234567891011121314151617181920212223242526272829303132
  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/11.php';
  10. /**
  11. * sfPearRest10 interacts with a PEAR channel that supports REST 1.1.
  12. *
  13. * @package symfony
  14. * @subpackage plugin
  15. * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  16. * @version SVN: $Id: sfPearRest11.class.php 5250 2007-09-24 08:11:50Z fabien $
  17. */
  18. class sfPearRest11 extends PEAR_REST_11
  19. {
  20. /**
  21. * @see PEAR_REST_11
  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. }