Services_Digg
[ class tree: Services_Digg ] [ index: Services_Digg ] [ all elements ]

Class: DiggAPIGallery

Source Location: /Services_Digg-0.4.7/Services/Digg/Response/php.php

Class Overview


DiggAPIGallery


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 838]
DiggAPIGallery

The stories return object uses PHP5 object iteration so that you can quickly iterate through responses.

  1.  <?php
  2.  
  3.  require_once 'Services/Digg.php';
  4.  $api Services_Digg::factory('GalleryPhotos');
  5.  $photos $api->getAll(array('count' => 10));
  6.  foreach ($photos as $photo{
  7.      echo $photo->title . '<br />' "\n";
  8.  }
  9.  
  10.  ?>



[ Top ]


Method Detail

current   [line 862]

mixed current( )

Return current element of $photos
  • Access: public

[ Top ]

key   [line 878]

mixed key( )

Return a key from $photos array
  • Access: public

[ Top ]

next   [line 894]

mixed next( )

Advance the internal pointer of $photos array
  • Access: public

[ Top ]

rewind   [line 846]

void rewind( )

Rewind $photos array
  • Access: public

[ Top ]

valid   [line 910]

boolean valid( )

Is the next iteration valid?
  • Access: public

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:32:20 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.