Пример #1
0
 /**
  * Get a select for result viewmode.
  * @param Module_Votes $module
  * @param string $name
  * @return string html select
  */
 public static function getViewSelect(Module_Votes $module, $name = 'view', $selected = self::SHOW_RESULT_VOTED)
 {
     $data = array(array(self::SHOW_RESULT_NEVER, $module->lang('vmview_never')), array(self::SHOW_RESULT_VOTED, $module->lang('vmview_voted')), array(self::SHOW_RESULT_ALWAYS, $module->lang('vmview_allways')));
     return GWF_Select::display($name, $data, $selected);
 }
Пример #2
0
 public function validate_view(Module_Votes $m, $arg)
 {
     return GWF_VoteMulti::isValidViewFlag($arg) ? false : $m->lang('err_multiview');
 }