Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:create:functions:urnstatus [14.12.2014 13:03] alexander.ritteren:create:functions:urnstatus [15.12.2014 15:01] (current) alexander.ritter
Line 3: Line 3:
 ''array **urnStatus**(string //urnIDs//)'' ''array **urnStatus**(string //urnIDs//)''
  
-The function ''urnStatus()'' returns information concerning the status of the specified urns.+The function ''urnStatus()'' returns information regarding the status of the urns specified.
  
-  * //urnIDs//\\ The urn IDs whose status are to be retrieved. +  * //urnIDs//\\ The ID of the urn whose status is to be retrieved. 
  
 ===== Return Value ===== ===== Return Value =====
  
-When an error occurs, for example, if there is no urn with the ID specified, the function returns ''false''. Otherwise, an array is returned with the following keys:+If an error occurs, for example, if there is no urn with the ID specified, the function returns ''false''. Otherwise, an array is returned with the following keys:
  
 ^Index^Meaning^ ^Index^Meaning^
Line 22: Line 22:
 <code php> <code php>
 $info = urnStatus('urn1'); $info = urnStatus('urn1');
-html('<p>Still '.$info['togo'].' from '.$info['elements'].' prize codes available.</p>');+html('<p>Still '.$info['togo'].' out of '.$info['elements'].' prize codes available.</p>');
 </code> </code>
en/create/functions/urnstatus.txt · Last modified: 15.12.2014 15:01 by alexander.ritter
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki