PageRenderTime 52ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/lib/ZendGdata-1.12.0/library/Zend/Gdata/YouTube/Extension/Username.php

https://bitbucket.org/hallgrennetworks/reptar
PHP | 51 lines | 13 code | 6 blank | 32 comment | 0 complexity | f22ae5340b1df6082f6a0a9aa86d5988 MD5 | raw file
Possible License(s): MIT
  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-2012 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 24593 2012-01-05 20:35:02Z matthew $
  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-2012 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. }