WidgetTweets Class Reference
Output twitter messages of airline. More...
Inheritance diagram for WidgetTweets:
Public Member Functions |
|
__construct ($user) | |
render ($policy=self::NONE) | |
Static Public Member Functions |
|
static | output ($user, $policy=self::NONE) |
Public Attributes |
|
$user |
Detailed Description
Output twitter messages of airline.
Definition at line 5 of file tweets.widget.php.
Constructor & Destructor Documentation
WidgetTweets::__construct | ( | $ | user | ) |
Definition at line 13 of file tweets.widget.php.
00013 { 00014 $this->user = $user; 00015 }
Member Function Documentation
static WidgetTweets::output | ( | $ | user, | |
$ | policy =
self::NONE |
|||
) | [static] |
Definition at line 8 of file tweets.widget.php.
00008 { 00009 $w = new WidgetTweets($user); 00010 return $w->render($policy); 00011 }
WidgetTweets::render | ( | $ | policy =
self::NONE |
) |
Implements IRenderer.
Definition at line 17 of file tweets.widget.php.
00017 { 00018 Load::models('tweets'); 00019 $tweets = Tweets::get_latest_for_user($this->user, 10); 00020 $view = ViewFactory::create_view(IViewFactory::MESSAGE, 'widgets/tweets', $page_data); 00021 $view->assign('tweets', $tweets); 00022 return $view->render(); 00023 }
Member Data Documentation
WidgetTweets::$user |
Definition at line 6 of file tweets.widget.php.
The documentation for this class was generated from the following file:
- contributions/api.twitter/view/widgets/tweets.widget.php