|
Stud.IP
3.1 Revision 48552
|
Namespaces | |
| namespace | vote |
Functions | |
| makeNewAnswer () | |
| moveAnswerUp (&$answers, $pos) | |
| moveAnswerDown (&$answers, $pos) | |
| deleteAnswer ($pos, &$answers, &$deleteAnswers) | |
| removeArgFromURL ($URL, $arg) | |
| deleteAnswer | ( | $pos, | |
| & | $answers, | ||
| & | $deleteAnswers | ||
| ) |
deletes the answer at position 'pos' from the array 'answers' and modifies the array 'deleteAnswers' respectively
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
private
| moveAnswerDown | ( | & | $answers, |
| $pos | |||
| ) |
moves the answer at position 'pos' from the array 'answers' one field down
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
private
| array | &$answers | the answerarray |
| int | $pos | the position of the answer to be moved |
| removeArgFromURL | ( | $URL, | |
| $arg | |||
| ) |
deletes argument '&arg=value' from URL
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 = "pagemode: $pageMode\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 private
| const QUESTION_HELPTEXT = _("Geben Sie hier Ihre Frage ein") |
| const TITLE_HELPTEXT = _("Geben Sie hier einen Titel ein (optional)") |