Stud.IP  jlu_3.3 Revision
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 = Request::option('voteaction')
 
 $showrangeID = Request::username('showrangeID')
 
 $voteID = Request::option('voteID')
 
 $openID = Request::option('openID')
 
 $searchRange = Request::get('searchRange')
 
 $referer = Request::option('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

◆ callSafeguard()

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()

createLabel ( )

creates an array with all used labes

@access private

Returns
array an array with all the labels

◆ createVoteArray()

createVoteArray (   $mode)

reads the vote data into an array

@access private

Parameters
modestring 'new', 'active' or 'stopped'
Returns
array Array with all the data
Here is the call graph for this function:

◆ removeArgFromURL()

removeArgFromURL (   $URL,
  $arg 
)

deletes argument '&arg=value' from URL

@access public

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

Variable Documentation

◆ $label

$label = createLabel()

◆ $openID

$openID = Request::option('openID')

◆ $perm

global $perm

◆ $referer

$referer = Request::option('referer')

◆ $safeguard

$safeguard = ""

◆ $searchRange

$searchRange = Request::get('searchRange')

◆ $showrangeID

$showrangeID = Request::username('showrangeID')

◆ $typen

$typen = array("user"=>_("Benutzer"),"sem"=>_("Veranstaltung"),"inst"=>_("Einrichtung"),"fak"=>_("Fakultät"))

◆ $userID

$userID = $user->id

◆ $voteaction

$voteaction = Request::option('voteaction')

◆ $voteDB

$voteDB = new VoteDB()

◆ $voteID

$voteID = Request::option('voteID')