Esempio n. 1
0
 /**
  * Create a new instance.
  *
  * @param DOMElement $element (optional) DOMElement from which this
  *          object should be constructed.
  */
 public function __construct($element = null)
 {
     $this->registerAllNamespaces(Photos::$namespaces);
     parent::__construct($element);
     $category = new \ZendGData\App\Extension\Category('http://schemas.google.com/photos/2007#photo', 'http://schemas.google.com/g/2005#kind');
     $this->setCategory(array($category));
 }
Esempio n. 2
0
 /**
  * Creates a subscription entry, representing an individual subscription
  * in a list of subscriptions, usually associated with an individual user.
  *
  * @param DOMElement $element (optional) DOMElement from which this
  *          object should be constructed.
  */
 public function __construct($element = null)
 {
     $this->registerAllNamespaces(YouTube::$namespaces);
     parent::__construct($element);
 }