Stud.IP
2.0 Revision 48548
|
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 |
if(isset($_REQUEST["voteID"])) if(!($perm->have_studip_perm("tutor", $rangeID)||$auth->auth["uname"]==$rangeID||(isDeputyEditAboutActivated()&&isDeputy($auth-> auth["uid"], get_userid($rangeID), true)))) | $referer = $_POST['referer'] |
if(!$referer) | $voteID = $_POST['voteID'] |
$rangeID = $_POST['rangeID'] | |
$type = $_POST['type'] | |
$makeACopy = $_GET['makecopy'] | |
$debug = "pagemode: $pageMode\n" | |
$answers = $_POST['answers'] | |
$title = $_POST['title'] != TITLE_HELPTEXT ? $_POST['title'] : NULL | |
$question = $_POST['question'] != QUESTION_HELPTEXT ? $_POST['question'] : NULL | |
$startMode = $_POST['startMode'] | |
$startDay = $_POST['startDay'] | |
$startMonth = $_POST['startMonth'] | |
$startYear = $_POST['startYear'] | |
$startHour = $_POST['startHour'] | |
$startMinute = $_POST['startMinute'] | |
$stopMode = $_POST['stopMode'] | |
$stopDay = $_POST['stopDay'] | |
$stopMonth = $_POST['stopMonth'] | |
$stopYear = $_POST['stopYear'] | |
$stopHour = $_POST['stopHour'] | |
$stopMinute = $_POST['stopMinute'] | |
$timeSpan = $_POST['timeSpan'] | |
$multipleChoice = $_POST['multipleChoice'] | |
$resultVisibility = $_POST['resultVisibility'] | |
$co_visibility = $_POST['co_visibility'] | |
$anonymous = $_POST['anonymous'] | |
$namesVisibility = $_POST['namesVisibility'] | |
$changeable = $_POST['changeable'] |
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 = $_POST['anonymous'] |
global $auth |
$changeable = $_POST['changeable'] |
$co_visibility = $_POST['co_visibility'] |
$debug = "pagemode: $pageMode\n" |
$makeACopy = $_GET['makecopy'] |
$multipleChoice = $_POST['multipleChoice'] |
$namesVisibility = $_POST['namesVisibility'] |
global $perm |
$question = $_POST['question'] != QUESTION_HELPTEXT ? $_POST['question'] : NULL |
$rangeID = $_POST['rangeID'] |
if (isset($_REQUEST["voteID"])) if (!($perm->have_studip_perm("tutor", $rangeID)||$auth->auth["uname"]==$rangeID||(isDeputyEditAboutActivated()&&isDeputy($auth->auth["uid"], get_userid($rangeID), true)))) $referer = $_POST['referer'] |
$resultVisibility = $_POST['resultVisibility'] |
$startDay = $_POST['startDay'] |
$startHour = $_POST['startHour'] |
$startMinute = $_POST['startMinute'] |
$startMode = $_POST['startMode'] |
$startMonth = $_POST['startMonth'] |
$startYear = $_POST['startYear'] |
$stopDay = $_POST['stopDay'] |
$stopHour = $_POST['stopHour'] |
$stopMinute = $_POST['stopMinute'] |
$stopMode = $_POST['stopMode'] |
$stopMonth = $_POST['stopMonth'] |
$stopYear = $_POST['stopYear'] |
$timeSpan = $_POST['timeSpan'] |
$title = $_POST['title'] != TITLE_HELPTEXT ? $_POST['title'] : NULL |
$type = $_POST['type'] |
if (!$referer) $voteID = $_POST['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)") |