| 
    Stud.IP
    2.4 Revision 48548
    
   | 
  
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" | 
| createFormFooter | ( | & | $vote, | 
| $userID, | |||
| $perm, | |||
| $rangeID | |||
| ) | 
Creates a HTML-form-footer and the administrationbuttons
| Object | $vote | The vote object | 
| String | $userID | The unique user id | 
| String | $perm | The perm of the user | 
| String | $rangeID | The rangeID | 


| createFormHeader | ( | & | $vote | ) | 
Creates a HTML-form-header for a vote
| Object | $vote | The vote object | 


| createOpeningOrClosingArrow | ( | $eval = FALSE | ) | 
creates a wonderful arrow for opening/closing all votes at once :)


| createStoppedVoteFooter | ( | ) | 
Creates the line containing general information for a stopped vote.
| object | $vote | The vote | 

| createStoppedVoteHeader | ( | & | $vote, | 
$evalDB = NULL  | 
        |||
| ) | 
Creates the line containing general information for a stopped vote.
| object | $vote | The vote | 


| createStoppedVotesHeadline | ( | $stoppedVotes, | |
| $openStoppedVotes, | |||
$stoppedEvals = NULL  | 
        |||
| ) | 
Creates the opened/closed headline for a old votes
| array | $stoppedVotes | The stopped vote | 


Creates a successmessage
| object | $vote | The vote | 
| bool | $firstTime | whether the report is created 1st time | 


| createVoteForm | ( | & | $vote, | 
| $userID | |||
| ) | 
Creates a input HTML-form for the user who wants to vote
| object | $vote | The vote | 
| string | $userID | The unique user id | 


| createVoteHeadline | ( | & | $vote, | 
| $open, | |||
| $openID, | |||
$evalDB = "",  | 
        |||
$isHomepage = NO  | 
        |||
| ) | 
Creates the opened/closed headline for a vote
| object | $vote | The vote | 
| boolean | $open | whether the whole vote will be displayed or the headline only | 


| createVoteInfo | ( | & | $vote, | 
$isAssociated = NO  | 
        |||
| ) | 
Displays the informations about a vote. E.g. used in front of the submit buttons.
| Object | $vote | The vote | 
| bool | $isAssociated | whether the current user has used the vote | 

| createVoteLink | ( | $voteID | ) | 
Create a HTML-image-link for the result
| String | $voteID | The unique vote id | 
| createVoteResult | ( | $vote, | |
$preview = NO  | 
        |||
| ) | 
Display the results in HTML
| object | $vote | The vote | 
| bool | $preview | if the user wants to look at the results without having voted | 


| sortBySurname | ( | $a, | |
| $b | |||
| ) | 

| 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" |