Exemplo n.º 1
0
 /** Get shouts for this user.
  *
  * @param	string	$user	The username to fetch shouts for. (Required)
  * @return	array			An array of Shout objects.
  *
  * @static
  * @access	public
  * @throws	Error
  */
 public static function getShouts($user)
 {
     $xml = CallerFactory::getDefaultCaller()->call('user.getShouts', array('user' => $user));
     $shouts = array();
     foreach ($xml->children() as $shout) {
         $shouts[] = Shout::fromSimpleXMLElement($shout);
     }
     return $shouts;
 }