| @@ 111-119 (lines=9) @@ | ||
| 108 | * | |
| 109 | * @return Request | |
| 110 | */ | |
| 111 | public function confirm($sQuestion) | |
| 112 |     { | |
| 113 | $this->sCondition = '__confirm__'; | |
| 114 | $this->aMessageArgs = func_get_args(); | |
| 115 |         array_walk($this->aMessageArgs, function (&$xParameter) { | |
| 116 | $xParameter = Parameter::make($xParameter); | |
| 117 | }); | |
| 118 | return $this; | |
| 119 | } | |
| 120 | ||
| 121 | /** | |
| 122 | * Add a condition to the request | |
| @@ 245-252 (lines=8) @@ | ||
| 242 | * | |
| 243 | * @return Request | |
| 244 | */ | |
| 245 | public function else($sMessage) | |
| 246 |     { | |
| 247 | $this->aMessageArgs = func_get_args(); | |
| 248 |         array_walk($this->aMessageArgs, function (&$xParameter) { | |
| 249 | $xParameter = Parameter::make($xParameter); | |
| 250 | }); | |
| 251 | return $this; | |
| 252 | } | |
| 253 | ||
| 254 | /** | |
| 255 | * Returns a string representation of the script output (javascript) from this request object | |