| @@ 1279-1290 (lines=12) @@ | ||
| 1276 | return 1; |
|
| 1277 | } |
|
| 1278 | ||
| 1279 | function addArray($vals) |
|
| 1280 | { |
|
| 1281 | if ($this->mytype != 0) |
|
| 1282 | { |
|
| 1283 | echo '<strong>XML_RPC_Values</strong>: already initialized as a ['.$this->kindOf().']<br />'; |
|
| 1284 | return 0; |
|
| 1285 | } |
|
| 1286 | ||
| 1287 | $this->mytype = $this->xmlrpcTypes['array']; |
|
| 1288 | $this->me['array'] = $vals; |
|
| 1289 | return 1; |
|
| 1290 | } |
|
| 1291 | ||
| 1292 | /** |
|
| 1293 | * @param integer $vals |
|
| @@ 1295-1305 (lines=11) @@ | ||
| 1292 | /** |
|
| 1293 | * @param integer $vals |
|
| 1294 | */ |
|
| 1295 | function addStruct($vals) |
|
| 1296 | { |
|
| 1297 | if ($this->mytype != 0) |
|
| 1298 | { |
|
| 1299 | echo '<strong>XML_RPC_Values</strong>: already initialized as a ['.$this->kindOf().']<br />'; |
|
| 1300 | return 0; |
|
| 1301 | } |
|
| 1302 | $this->mytype = $this->xmlrpcTypes['struct']; |
|
| 1303 | $this->me['struct'] = $vals; |
|
| 1304 | return 1; |
|
| 1305 | } |
|
| 1306 | ||
| 1307 | function kindOf() |
|
| 1308 | { |
|