contributions/api.twitter/model/classes/tweets.facade.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * Facade for stored tweets 00004 * 00005 * @ingroup Twitter 00006 * @author Gerd Riesselmann 00007 * 00008 */ 00009 class Tweets { 00010 public static function get_latest_for_user($user, $num) { 00011 $dao = new DAOTweets(); 00012 $dao->username = $user; 00013 $dao->sort('creationdate', DataObjectBase::DESC); 00014 $dao->limit($num); 00015 return $dao->find_array(); 00016 } 00017 }