Stud.IP  jlu_3.3 Revision
vote_show.lib.php File Reference

Namespaces

namespace  vote
 

Functions

 createVoteLink ($voteID)
 
 createFormHeader (&$vote)
 
 createFormFooter (&$vote, $userID, $perm, $rangeID)
 
 createVoteForm (&$vote, $userID)
 
 createOpeningOrClosingArrow ($eval=FALSE)
 
 createVoteHeadline (&$vote, $open, $openID, $evalDB="", $isHomepage=NO)
 
 createStoppedVotesHeadline ($stoppedVotes, $openStoppedVotes, $stoppedEvals=NULL)
 
 createStoppedVoteHeader (&$vote, $evalDB=NULL)
 
 createStoppedVoteFooter ()
 
 createSuccessReport (&$vote, $firstTime=YES, $changed=NO)
 
 createVoteResult ($vote, $preview=NO)
 
 createVoteInfo (&$vote, $isAssociated=NO)
 
 sortBySurname ($a, $b)
 

Variables

const VOTE_MESSAGE_EMPTY "<p class=\"info\">\n". " "._("Es sind keine aktuellen Umfragen vorhanden. Um neue Umfragen zu erstellen, klicken Sie rechts auf die Zahnräder.")."\n". "</p>\n"
 

Function Documentation

◆ createFormFooter()

createFormFooter ( $vote,
  $userID,
  $perm,
  $rangeID 
)

Creates a HTML-form-footer and the administrationbuttons

Parameters
Object$voteThe vote object
String$userIDThe unique user id
String$permThe perm of the user
String$rangeIDThe rangeID
Returns
String The HTML-form-footer
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createFormHeader()

createFormHeader ( $vote)

Creates a HTML-form-header for a vote

Parameters
Object$voteThe vote object
Returns
String The HTML-form-header
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createOpeningOrClosingArrow()

createOpeningOrClosingArrow (   $eval = FALSE)

creates a wonderful arrow for opening/closing all votes at once :)

Returns
string the HTML-text
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createStoppedVoteFooter()

createStoppedVoteFooter ( )

Creates the line containing general information for a stopped vote.

Parameters
object$voteThe vote
Returns
String The HTML-text
Here is the caller graph for this function:

◆ createStoppedVoteHeader()

createStoppedVoteHeader ( $vote,
  $evalDB = NULL 
)

Creates the line containing general information for a stopped vote.

Parameters
object$voteThe vote
Returns
String The HTML-text
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createStoppedVotesHeadline()

createStoppedVotesHeadline (   $stoppedVotes,
  $openStoppedVotes,
  $stoppedEvals = NULL 
)

Creates the opened/closed headline for a old votes

Parameters
array$stoppedVotesThe stopped vote
Returns
String The HTML-text
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createSuccessReport()

createSuccessReport ( $vote,
  $firstTime = YES,
  $changed = NO 
)

Creates a successmessage

Parameters
object$voteThe vote
bool$firstTimewhether the report is created 1st time
Returns
String The HTML-text
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createVoteForm()

createVoteForm ( $vote,
  $userID 
)

Creates a input HTML-form for the user who wants to vote

Parameters
object$voteThe vote
string$userIDThe unique user id
Returns
String The HTML-text
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createVoteHeadline()

createVoteHeadline ( $vote,
  $open,
  $openID,
  $evalDB = "",
  $isHomepage = NO 
)

Creates the opened/closed headline for a vote

Parameters
object$voteThe vote
boolean$openwhether the whole vote will be displayed or the headline only
Returns
String The HTML-text
Here is the call graph for this function:
Here is the caller graph for this function:

◆ createVoteInfo()

createVoteInfo ( $vote,
  $isAssociated = NO 
)

Displays the informations about a vote. E.g. used in front of the submit buttons.

Parameters
Object$voteThe vote
bool$isAssociatedwhether the current user has used the vote
Returns
String The HTML-text
Here is the caller graph for this function:

◆ createVoteLink()

createVoteLink (   $voteID)

Create a HTML-image-link for the result

Parameters
String$voteIDThe unique vote id
Returns
String The HTML-image-link

◆ createVoteResult()

createVoteResult (   $vote,
  $preview = NO 
)

Display the results in HTML

Parameters
object$voteThe vote
bool$previewif the user wants to look at the results without having voted
Returns
String The HTML-text
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sortBySurname()

sortBySurname (   $a,
  $b 
)
Here is the call graph for this function:

Variable Documentation

◆ VOTE_MESSAGE_EMPTY

const VOTE_MESSAGE_EMPTY "<p class=\"info\">\n". " "._("Es sind keine aktuellen Umfragen vorhanden. Um neue Umfragen zu erstellen, klicken Sie rechts auf die Zahnräder.")."\n". "</p>\n"