PageRenderTime 55ms CodeModel.GetById 17ms RepoModel.GetById 3ms app.codeStats 0ms

/includes/src/Zend/Gdata/YouTube/Extension/Username.php

https://bitbucket.org/kdms/sh-magento
PHP | 51 lines | 12 code | 6 blank | 33 comment | 0 complexity | 5115291a9f1fd81f30f8eac426c6c8d3 MD5 | raw file
  1. <?php
  2. /**
  3. * Zend Framework
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the new BSD license that is bundled
  8. * with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://framework.zend.com/license/new-bsd
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@zend.com so we can send you a copy immediately.
  14. *
  15. * @category Zend
  16. * @package Zend_Gdata
  17. * @subpackage YouTube
  18. * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  19. * @license http://framework.zend.com/license/new-bsd New BSD License
  20. * @version $Id: Username.php 20096 2010-01-06 02:05:09Z bkarwin $
  21. */
  22. /**
  23. * @see Zend_Gdata_Extension
  24. */
  25. #require_once 'Zend/Gdata/Extension.php';
  26. /**
  27. * Represents the yt:username element
  28. *
  29. * @category Zend
  30. * @package Zend_Gdata
  31. * @subpackage YouTube
  32. * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  33. * @license http://framework.zend.com/license/new-bsd New BSD License
  34. */
  35. class Zend_Gdata_YouTube_Extension_Username extends Zend_Gdata_Extension
  36. {
  37. protected $_rootElement = 'username';
  38. protected $_rootNamespace = 'yt';
  39. public function __construct($text = null)
  40. {
  41. $this->registerAllNamespaces(Zend_Gdata_YouTube::$namespaces);
  42. parent::__construct();
  43. $this->_text = $text;
  44. }
  45. }