WidgetVotingForm Class Reference
A widget to print a voting result. More...
Inheritance diagram for
WidgetVotingForm:
Public Member Functions |
|
__construct ($instance) | |
render ($policy=self::NONE) | |
Static Public Member Functions |
|
static | output ($instance, $policy=self::NONE) |
Public Attributes |
|
$instance |
Detailed Description
A widget to print a voting result.
Definition at line 5 of file votingform.widget.php.
Constructor & Destructor Documentation
WidgetVotingForm::__construct | ( | $ | instance | ) |
Definition at line 13 of file votingform.widget.php.
00013 { 00014 $this->instance = $instance; 00015 }
Member Function Documentation
static WidgetVotingForm::output | ( | $ | instance, | |
$ | policy =
self::NONE |
|||
) | [static] |
Definition at line 8 of file votingform.widget.php.
00008 { 00009 $w = new WidgetVotingForm($instance); 00010 return $w->render($policy); 00011 }
WidgetVotingForm::render | ( | $ | policy =
self::NONE |
) |
Implements IRenderer.
Definition at line 17 of file votingform.widget.php.
00017 { 00018 Load::models('votes'); 00019 $inst = $this->instance; 00020 $view = ViewFactory::create_view(IViewFactory::MESSAGE, 'widgets/votingform'); 00021 $view->assign('instance', $inst); 00022 $view->assign('action', ActionMapper::get_path('voting_vote', $inst)); 00023 $view->assign('policy', $policy); 00024 return $view->render(); 00025 }
Member Data Documentation
WidgetVotingForm::$instance |
Definition at line 6 of file votingform.widget.php.
The documentation for this class was generated from the following file:
- contributions/voting/view/widgets/votingform.widget.php