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

Class: DiggAPIStories

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

Class Overview


DiggAPIStories


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 734]
DiggAPIStories

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('Stories');
  5.  $stories $api->getAll(array('count' => 10));
  6.  foreach ($stories as $story{
  7.      echo $story->title . '<br />' "\n";
  8.  }
  9.  
  10.  ?>



[ Top ]


Method Detail

current   [line 758]

mixed current( )

Return current element of $stories
  • Access: public

[ Top ]

key   [line 774]

mixed key( )

Return a key from $stories array
  • Access: public

[ Top ]

next   [line 790]

mixed next( )

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

[ Top ]

rewind   [line 742]

void rewind( )

Rewind $stories array
  • Access: public

[ Top ]

valid   [line 806]

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.