/** * 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 \Zend\GData\App\Extension\Category('http://schemas.google.com/photos/2007#photo', 'http://schemas.google.com/g/2005#kind'); $this->setCategory(array($category)); }
/** * 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); }