https://hu.doc.boardgamearena.com/index.php?title=Players_actions_(yourgamename.action.php)&feed=atom&action=historyPlayers actions (yourgamename.action.php) - Laptörténet2024-03-29T02:36:34ZAz oldal laptörténete a wikibenMediaWiki 1.39.0https://hu.doc.boardgamearena.com/index.php?title=Players_actions_(yourgamename.action.php)&diff=440&oldid=prevSourisdudesert: Created page with "=== APP_GameAction class (<gamename>.action.php) === ; function isArg( $argName ) : Is this argument filled ? ; function getArg( $argName, $argType, $mandatory=false, $defaul..."2013-01-05T10:12:58Z<p>Created page with "=== APP_GameAction class (<gamename>.action.php) === ; function isArg( $argName ) : Is this argument filled ? ; function getArg( $argName, $argType, $mandatory=false, $defaul..."</p>
<p><b>Új lap</b></p><div>=== APP_GameAction class (<gamename>.action.php) ===<br />
<br />
; function isArg( $argName )<br />
: Is this argument filled ?<br />
; function getArg( $argName, $argType, $mandatory=false, $default=NULL, $argTypeDetails=array(), $bCanFail=false )<br />
: Get script argument with the correct type<br />
: bCanFail means than a validation failure is possible (user input)<br />
: The main argType values are as follows.<br />
<pre><br />
define( 'AT_int', 0 ); // an integer<br />
define( 'AT_posint', 1 ); // a positive integer <br />
define( 'AT_float', 2 ); // a float<br />
define( 'AT_email', 3 ); // an email <br />
define( 'AT_url', 4 ); // a URL<br />
define( 'AT_bool', 5 ); // 1/0/true/false<br />
define( 'AT_enum', 6 ); // argTypeDetails list the possible values<br />
define( 'AT_alphanum', 7 ); // only 0-9a-zA-Z_ and space<br />
</pre></div>Sourisdudesert