|
Stud.IP
2.4 Revision 48548
|


Public Member Functions | |
| setVote (&$vote) | |
| __construct () | |
| getNewVotes ($rangeID) | |
| getActiveVotes ($rangeID) | |
| getStoppedVisibleVotes ($rangeID) | |
| getStoppedVotes ($rangeID) | |
| getNewUserVotes ($authorID, $rangeID=NULL) | |
| getActiveUserVotes ($authorID, $rangeID=NULL) | |
| getStoppedUserVotes ($authorID, $rangeID=NULL) | |
| removeVote ($voteID) | |
| getVote ($voteID) | |
| isExistant ($voteID) | |
| isAssociated ($voteID, $userID) | |
| hasanyoneparticipated ($voteID, $anonymous=NO) | |
| getNumberUserVoted () | |
| getRangename ($rangeID) | |
| getAuthorUsername ($authorID) | |
| getAuthorRealname ($authorID) | |
| startVote ($voteID, $state, $startdate, $stopdate, $timespan) | |
| stopVote ($voteID, $state, $stopdate) | |
| continueVote ($voteID, $startdate, $stopdate) | |
| restartVote ($voteID, $startdate, $stopdate, $anonymous) | |
| setVisible ($voteID, $state) | |
| startWaitingVotes ($rangeID) | |
| writeVote ($voteID, $authorID, $rangeID, $title, $question, $state, $startTime, $endTime, $timespan, $mkdate, $chdate, $resultvisibility, $namesvisibility, $multiplechoice, $anonymous, $answerarray, $changeable, $co_visibility=NULL, $type) | |
| participate ($voteID, $userID, $answerArray, $isAnonymous, $changeable=NULL) | |
| getAssociatedUsers ($answer_id) | |
| getType ($voteID) | |
| search_range ($search_str) | |
| isExistant2 () | |
| isAssociated2 ($userID=NULL) | |
| writeVote2 () | |
Public Member Functions inherited from StudipObject | |
| StudipObject ($objectID="") | |
| createNewID () | |
| getObjectID () | |
| setObjectID ($objectID) | |
| getAuthorID () | |
| getAuthor () | |
| getFullname () | |
| setAuthorID ($authorID) | |
| getRangeID () | |
| setRangeID ($rangeID) | |
Public Member Functions inherited from AuthorObject | |
| AuthorObject () | |
| finalize () | |
| setAuthorEmail ($email) | |
| getAuthorEmail () | |
| setAuthorName ($name) | |
| getAuthorName () | |
| x_instanceof () | |
| isError () | |
| getErrors () | |
| resetErrors () | |
| throwError ($errcode, $errstring, $errline=0, $errfile=0, $errtype=ERROR_NORMAL) | |
| throwErrorFromClass (&$class) | |
| errorHandler ($no, $str, $file, $line, $ctx) | |
Data Fields | |
| $vote | |
Data Fields inherited from StudipObject | |
| $objectID | |
| $authorID | |
| $rangeID | |
Data Fields inherited from AuthorObject | |
| $errorArray | |
| $authorEmail | |
| $authorName | |
| $instanceof | |
| __construct | ( | ) |

| continueVote | ( | $voteID, | |
| $startdate, | |||
| $stopdate | |||
| ) |
Continues a stopped vote by setting it's state to active public
| voteID | VoteID of the specified vote |
| $startdate | New date, when the vote starts |
| $stopdate | New date, when the vote stops |

| getActiveUserVotes | ( | $authorID, | |
$rangeID = NULL |
|||
| ) |
Gets active votes from a specified user
public
| string | $userID | The ID of the demanding user |

| getActiveVotes | ( | $rangeID | ) |
Gets the active votes in the specified rangeID
public
| string | $rangeID | The specified rangeID |

| getAssociatedUsers | ( | $answer_id | ) |
Returns the users having voted with a specific answer public
| answer_id | The id of the specific answer |

| getAuthorRealname | ( | $authorID | ) |
Gets the real name from the owner of the vote public

| getAuthorUsername | ( | $authorID | ) |
Gets the username from the owner of the vote public

| getNewUserVotes | ( | $authorID, | |
$rangeID = NULL |
|||
| ) |
Gets new votes from a specified user
public
| string | $userID | The ID of the demanding user |

| getNewVotes | ( | $rangeID | ) |
Gets the new votes in the specified rangeID
public
| string | $rangeID | The specified rangeID |

| getNumberUserVoted | ( | ) |
Gets the number of users which used the vote public

| getRangename | ( | $rangeID | ) |
Gets the name of the range from the vote public

| getStoppedUserVotes | ( | $authorID, | |
$rangeID = NULL |
|||
| ) |
Gets stopped votes from a specified user
public
| string | $userID | The ID of the demanding user |

| getStoppedVisibleVotes | ( | $rangeID | ) |
Gets stopped votes in the specified rangeID that are visible to authors
public
| string | $rangeID | The specified rangeID |

| getStoppedVotes | ( | $rangeID | ) |
Gets stopped votes in the specified rangeID
public
| string | $rangeID | The specified rangeID |

| getType | ( | $voteID | ) |
Returns the type of a specific vote
| string | $voteID | Id of the vote |

| getVote | ( | $voteID | ) |
Reads a specified vote from the DB and returns an array of it's params.
public
| string | $voteID | specified voteID |

| hasanyoneparticipated | ( | $voteID, | |
$anonymous = NO |
|||
| ) |
Checks whether any user has participated in a specified vote public


| isAssociated | ( | $voteID, | |
| $userID | |||
| ) |
Checks whether a user has participated in a specified vote public
| string | $userID | The unique user ID |


| isAssociated2 | ( | $userID = NULL | ) |
Checks whether a special user or anyone has participated public
| string | $userID | The unique user ID |

| isExistant | ( | $voteID | ) |
Checks wheather a vote with a specified ID already exists public
| specified | Vote ID |


| isExistant2 | ( | ) |
Checks wheather a vote with a specified ID already exists (alex) public

| participate | ( | $voteID, | |
| $userID, | |||
| $answerArray, | |||
| $isAnonymous, | |||
$changeable = NULL |
|||
| ) |
Store a user's participation
| string | $voteID | Id of the vote |
| string | $userID | Id of the participating user |
| array | $answerArray | Array containing the answers |
| boolean | $isAnonymous | Indicates where participation is anonymous |
| boolean | $changeable | Indiciates whether the user may change his answers |

| removeVote | ( | $voteID | ) |
Deletes a vote from the DB
public
| string | $voteID | The specified voteID |

| restartVote | ( | $voteID, | |
| $startdate, | |||
| $stopdate, | |||
| $anonymous | |||
| ) |
Restarts a vote setting all answercounters to 0 again public
| voteID | VoteID of the specified vote |
| $startdate | New date, when the vote starts |
| $stopdate | New date, when the vote stops |
| $anonymous | Is the vote anonymous or not |

| search_range | ( | $search_str | ) |
Searches a range? (TODO)
| string | $search_str | String to search |
| setVisible | ( | $voteID, | |
| $state | |||
| ) |
Sets the visibility of a vote to the new state public
| voteID | VoteID of the specified vote |
| $state | New state |

| setVote | ( | & | $vote | ) |
Set the vote object to be used
| $mixed | $vote Vote object |
| startVote | ( | $voteID, | |
| $state, | |||
| $startdate, | |||
| $stopdate, | |||
| $timespan | |||
| ) |
Gets the real name from the owner of the vote public
| voteID | VoteID of the specified vote |
| $state | New state of the vote |
| $startdate | New date, when the vote starts |
| $stopdate | New date, when the vote stops |
| $timespan | A useless parameter |

| startWaitingVotes | ( | $rangeID | ) |
Starts all votes in dependency to their startdate
| string | $rangeID | The specified rangeID |

| stopVote | ( | $voteID, | |
| $state, | |||
| $stopdate | |||
| ) |
Stopps an active vote by setting its state to 'stopped'. public
| voteID | VoteID of the specified vote |
| $state | New state of the vote |
| $stopdate | New date, when the vote stops |

| writeVote | ( | $voteID, | |
| $authorID, | |||
| $rangeID, | |||
| $title, | |||
| $question, | |||
| $state, | |||
| $startTime, | |||
| $endTime, | |||
| $timespan, | |||
| $mkdate, | |||
| $chdate, | |||
| $resultvisibility, | |||
| $namesvisibility, | |||
| $multiplechoice, | |||
| $anonymous, | |||
| $answerarray, | |||
| $changeable, | |||
$co_visibility = NULL, |
|||
| $type | |||
| ) |
Writes a new vote into the Database
public
| string | $voteID | specified voteID |
| string | $autorID | ID of the author |
| string | $rangeID | specified rangeID |
| string | $title | Title of the vote |
| string | $question | Question of the vote |
| int | $state | state of the vote |
| int | $starttime | Starttime of the vote |
| int | $endtime | Endtime of the vote |
| int | $timeslice | |
| int | $creationTime | Creation time of thevote |
| int | $changeTime | Time of last modifications |
| int | $resultview | Visibility of the results |
| int | $namesvisibility | Visibility of the participants |
| string | $multianswer | Single or multianswering |
| string | $anonymous | Democratic or totalitarian vote |
| array | $answerArray | The answers |
| string | $co_visibility | correct answers visibility |
| string | $type |


| writeVote2 | ( | ) |
Writes a new vote(not a test) into the database (neue Version von Alex) z.Z. noch unbenutzt (12.Aug.2003), jedoch getestet und funktionstüchtig public

| Vote $vote |
Holds an instance of a vote public