This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
en:create:functions:urnstatus [14.12.2014 12:47] – created alexander.ritter | en:create:functions:urnstatus [14.12.2014 13:04] – [Example] alexander.ritter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== urnStatus() ====== | ====== urnStatus() ====== | ||
- | '' | + | '' |
- | Die Funktion | + | The function |
- | * //UrnenKennung//\\ Die Kennung der Urne, deren Status abgefragt werden soll. | + | * //urnIDs//\\ The urn IDs whose status are to be retrieved. |
- | ===== Rückgabewert | + | ===== Return Value ===== |
- | Im Fehlerfall, z.B. wenn es keine Urne mit der angegebenen Kennung gibt, gibt die Funktion | + | When an error occurs, for example, if there is no urn with the ID specified, the function returns |
- | ^Index^Bedeutung^ | + | ^Index^Meaning^ |
- | |elements|Anzahl der Zettel | + | |elements|Number of ballots |
- | |drawn|Anzahl der bisher insgesamt entnommenen und abgelegten Zettel| | + | |drawn|Number of overall ballots already drawn and stored| |
- | |round|Angabe, zum wievielten Mal die Urne gerade geleert wird (beginnt mit 1), entsprechend dem Rückgabewert von '' | + | |round|Number of time the urn has been emptied |
- | |done|Anzahl der Zettel, die __in der aktuellen Runde__ bereits gezogen wurden. Wenn alle Zettel aus der Urne gezogen wurden, beginnt die nächste Runde und die Anzahl der gezogenen Zettel wird auf 0 zurückgesetzt.| | + | |done|Numer of ballots already drawn __in the current round__. If all ballots have been drawn from the urn, the next round commences and the number of ballots drawn is reset to 0| |
- | |togo|Anzahl der Zettel, die __in der aktuellen Runde__ noch zur Ziehung bereit stehen. Wenn diese Zahl den Wert 0 erreicht, beginnt eine neue Runde und der Wert wird auf die Anzahl der Zettel zurückgesetzt| | + | |togo|Number of ballots |
- | ===== Beispiel | + | ===== Example |
<code php> | <code php> | ||
- | $info = urnStatus(' | + | $info = urnStatus(' |
- | html('< | + | html('< |
</ | </ |