X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fphp-instagram-api%2Fphp-instagram-api%2FInstagram%2FCollection%2FTagMediaCollection.php;fp=vendor%2Fphp-instagram-api%2Fphp-instagram-api%2FInstagram%2FCollection%2FTagMediaCollection.php;h=269c0c247aaf215e9bf4deaa58190add4c2048bc;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/vendor/php-instagram-api/php-instagram-api/Instagram/Collection/TagMediaCollection.php b/vendor/php-instagram-api/php-instagram-api/Instagram/Collection/TagMediaCollection.php new file mode 100644 index 000000000..269c0c247 --- /dev/null +++ b/vendor/php-instagram-api/php-instagram-api/Instagram/Collection/TagMediaCollection.php @@ -0,0 +1,57 @@ + +* @license http://opensource.org/licenses/mit-license.php The MIT License +*/ + +namespace Instagram\Collection; + +/** + * Tag Media Collection + * + * Holds a collection of media associated with a tag + */ +class TagMediaCollection extends \Instagram\Collection\MediaCollection { + + /** + * Get min tag id + * + * Get the minimum tag id. + * if you're using the Realtime API and fetch media from /media/recent for Tags, + * you should save the min_tag_id and pass it in next time you hit that endpoint + * in response to a realtime push; you'll receive all media since the last time you checked. + * + * @return string Return the min tag id + * @access public + */ + public function getMinTagId() { + return isset( $this->pagination->min_tag_id ) ? $this->pagination->min_tag_id : null; + } + + /** + * Get next max tag id + * + * Get the next max tag id for use in pagination + * + * @return string Returns the next max tag id + * @access public + */ + public function getNextMaxTagId() { + return isset( $this->pagination->next_max_tag_id ) ? $this->pagination->next_max_tag_id : null; + } + + /** + * Get next max tag id + * + * Get the next max tag id for use in pagination + * + * @return string Returns the next max tag id + * @access public + */ + public function getNext() { + return $this->getNextMaxTagId(); + } + +} \ No newline at end of file