Stud.IP  2.0 Revision 48548
 All Data Structures Namespaces Files Functions Variables Pages
vote_overview.inc.php File Reference

Namespaces

namespace  vote

Functions

if($voteaction!="search")
elseif(($voteaction=="search")&&(($rangemode=="root")||($rangemode=="admin"))) 
callSafeguard ($voteaction, $voteID="", $showrangeID=NULL, $search=NULL, $referer=NULL)
 createVoteArray ($mode)
 createLabel ()
 removeArgFromURL ($URL, $arg)

Variables

 $voteaction = $_POST['voteaction']
 $showrangeID = $_POST['rangeID']
 $voteID = $_POST['voteID']
 $openID = $_GET['openID']
 $searchRange = $_POST['searchRange']
 $referer = $_GET['referer']
 $label = createLabel()
 $safeguard = ""
global $perm
 $userID = $user->id
if(($showrangeID)&&($voteaction!="search"))
elseif($voteaction!="search")
if(($referer)&&($referer=="1")) 
$voteDB = new VoteDB()
 $typen = array("user"=>_("Benutzer"),"sem"=>_("Veranstaltung"),"inst"=>_("Einrichtung"),"fak"=>_("Fakultät"))

Function Documentation

if ($voteaction!="search") elseif (($voteaction=="search")&&(($rangemode=="root")||($rangemode=="admin"))) callSafeguard (   $voteaction,
  $voteID = "",
  $showrangeID = NULL,
  $search = NULL,
  $referer = NULL 
)

Here is the call graph for this function:

createLabel ( )

creates an array with all used labes

private

Returns
array an array with all the labels
createVoteArray (   $mode)

reads the vote data into an array

private

Parameters
modestring 'new', 'active' or 'stopped'
Returns
array Array with all the data

Here is the call graph for this function:

removeArgFromURL (   $URL,
  $arg 
)

deletes argument '&arg=value' from URL

public

Parameters
string$URLthe URL to be modified
string$argthe name of the argument
Returns
string the new URL

Variable Documentation

$label = createLabel()
$openID = $_GET['openID']
global $perm
$referer = $_GET['referer']
$safeguard = ""
$searchRange = $_POST['searchRange']
$showrangeID = $_POST['rangeID']
$typen = array("user"=>_("Benutzer"),"sem"=>_("Veranstaltung"),"inst"=>_("Einrichtung"),"fak"=>_("Fakultät"))
$userID = $user->id
$voteaction = $_POST['voteaction']
$voteDB = new VoteDB()
$voteID = $_POST['voteID']