/**
  * Constructor.
  *
  * You can construct a photoset from an Id or XML.
  *
  * @param   object Phlickr_Api $api This object must have valid
  *          authentication information or an exception will be thrown.
  * @param   mixed $source integer Id, object SimpleXMLElement
  * @throws  Phlickr_Exception, Phlickr_ConnectionException,
  *          Phlickr_XmlParseException
  */
 function __construct(Phlickr_Api $api, $source)
 {
     assert($api->isAuthValid());
     parent::__construct($api, $source);
 }
Beispiel #2
0
 /**
  * Constructor.
  *
  * @param   object Phlickr_Api $api This object must have valid
  *          authentication information or an exception will be thrown.
  */
 function __construct(Phlickr_Api $api)
 {
     assert($api->isAuthValid());
     parent::__construct($api, $api->getUserId());
 }