| 
    Stud.IP
    jlu_3.3 Revision
    
   | 
  
Namespaces | |
| namespace | vote | 
Functions | |
| makeNewAnswer () | |
| moveAnswerUp (&$answers, $pos) | |
| moveAnswerDown (&$answers, $pos) | |
| deleteAnswer ( $pos, &$answers, &$deleteAnswers) | |
| removeArgFromURL ( $URL, $arg) | |
Variables | |
| const | MODE_CREATE 0 | 
| const | MODE_MODIFY 1 | 
| const | MODE_RESTRICTED 2 | 
| const | TITLE_HELPTEXT _("Geben Sie hier einen Titel ein (optional)") | 
| const | QUESTION_HELPTEXT _("Geben Sie hier Ihre Frage ein") | 
| global | $auth | 
| global | $perm | 
| $voteID = Request::option('voteID') | |
| if(!( $perm->have_studip_perm("tutor", $rangeID)||$auth->auth["uname"]==$rangeID||(isDeputyEditAboutActivated() &&isDeputy($auth->auth["uid"], get_userid($rangeID), true)))) | $referer = Request::get('referer') | 
| $rangeID = Request::username('rangeID') | |
| $type = Request::option('type') | |
| $makeACopy = Request::option('makecopy') | |
| if(strlen( $makeACopy) > 1) if($type=="test") | else { $vote = new Vote ( $voteID ) | 
| $debug ="referer: $referer\n" | |
| $answers = Request::getArray('answers') | |
| $title = Request::get('title') != TITLE_HELPTEXT ? Request::get('title') : NULL | |
| $question = Request::get('question') != QUESTION_HELPTEXT ? Request::get('question') : NULL | |
| $startMode = Request::get('startMode') | |
| $startEvent = Request::get('startEvent') | |
| $startHour = Request::get('startHour') | |
| $startMinute = Request::get('startMinute') | |
| $stopMode = Request::get('stopMode') | |
| $stopEvent = Request::get('stopEvent') | |
| $stopHour = Request::get('stopHour') | |
| $stopMinute = Request::get('stopMinute') | |
| $timeSpan = Request::get('timeSpan') | |
| $multipleChoice = Request::get('multipleChoice') | |
| $resultVisibility = Request::get('resultVisibility') | |
| $co_visibility = Request::get('co_visibility') | |
| $anonymous = Request::get('anonymous') | |
| $namesVisibility = Request::get('namesVisibility') | |
| $changeable = Request::get('changeable') | |
| deleteAnswer | ( | $pos, | |
| & | $answers, | ||
| & | $deleteAnswers | ||
| ) | 
deletes the answer at position 'pos' from the array 'answers' and modifies the array 'deleteAnswers' respectively
@access public
| array | &$answers | the answerarray | 
| array | &$deleteAnswers | the array containing the deleteCheckbox-bool-value for each answer | 
| int | $pos | the position of the answer to be deleted | 
| makeNewAnswer | ( | ) | 
creates a new answer
@access private
| moveAnswerDown | ( | & | $answers, | 
| $pos | |||
| ) | 
moves the answer at position 'pos' from the array 'answers' one field down
@access private
| array | &$answers | the answerarray | 
| int | $pos | the position of the answer to be moved | 
| moveAnswerUp | ( | & | $answers, | 
| $pos | |||
| ) | 
moves the answer at position 'pos' from the array 'answers' one field up
@access private
| array | &$answers | the answerarray | 
| int | $pos | the position of the answer to be moved | 
| removeArgFromURL | ( | $URL, | |
| $arg | |||
| ) | 
deletes argument '&arg=value' from URL
@access public
| string | $URL | the URL to be modified | 
| string | $arg | the name of the argument | 
| $anonymous = Request::get('anonymous') | 
| $answers = Request::getArray('answers') | 
| global $auth | 
| $changeable = Request::get('changeable') | 
| $co_visibility = Request::get('co_visibility') | 
| $debug ="referer: $referer\n" | 
| $makeACopy = Request::option('makecopy') | 
| $multipleChoice = Request::get('multipleChoice') | 
| $namesVisibility = Request::get('namesVisibility') | 
| global $perm | 
| $question = Request::get('question') != QUESTION_HELPTEXT ? Request::get('question') : NULL | 
| $rangeID = Request::username('rangeID') | 
| if (!($perm->have_studip_perm("tutor", $rangeID)|| $auth->auth["uname"]==$rangeID||(isDeputyEditAboutActivated() && isDeputy( $auth->auth["uid"], get_userid( $rangeID), true)))) $referer = Request::get('referer') | 
| $resultVisibility = Request::get('resultVisibility') | 
| $startEvent = Request::get('startEvent') | 
| $startHour = Request::get('startHour') | 
| $startMinute = Request::get('startMinute') | 
| $startMode = Request::get('startMode') | 
| $stopEvent = Request::get('stopEvent') | 
| $stopHour = Request::get('stopHour') | 
| $stopMinute = Request::get('stopMinute') | 
| $stopMode = Request::get('stopMode') | 
| $timeSpan = Request::get('timeSpan') | 
| $title = Request::get('title') != TITLE_HELPTEXT ? Request::get('title') : NULL | 
| $type = Request::option('type') | 
| if (! $referer) $voteID = Request::option('voteID') | 
| const MODE_CREATE 0 | 
| const MODE_MODIFY 1 | 
| MODE_CREATE MODE_MODIFY or MODE_RESTRICTED 2 | 
the edit page's operational mode @access private
| const QUESTION_HELPTEXT _("Geben Sie hier Ihre Frage ein") | 
| const TITLE_HELPTEXT _("Geben Sie hier einen Titel ein (optional)") |