| @@ 449-458 (lines=10) @@ | ||
| 446 | * ({@link xajax::registerFunction() see registerFunction} for |
|
| 447 | * more info on object callback arrays) |
|
| 448 | */ |
|
| 449 | function registerCatchAllFunction($mFunction) |
|
| 450 | { |
|
| 451 | if (is_array($mFunction)) { |
|
| 452 | $this->sCatchAllFunction = $mFunction[0]; |
|
| 453 | $this->aObjects[$mFunction[0]] = array_slice($mFunction, 1); |
|
| 454 | } |
|
| 455 | else { |
|
| 456 | $this->sCatchAllFunction = $mFunction; |
|
| 457 | } |
|
| 458 | } |
|
| 459 | ||
| 460 | /** |
|
| 461 | * Registers a PHP function to be called before xajax calls the requested |
|
| @@ 475-484 (lines=10) @@ | ||
| 472 | * ({@link xajax::registerFunction() see registerFunction} for |
|
| 473 | * more info on object callback arrays) |
|
| 474 | */ |
|
| 475 | function registerPreFunction($mFunction) |
|
| 476 | { |
|
| 477 | if (is_array($mFunction)) { |
|
| 478 | $this->sPreFunction = $mFunction[0]; |
|
| 479 | $this->aObjects[$mFunction[0]] = array_slice($mFunction, 1); |
|
| 480 | } |
|
| 481 | else { |
|
| 482 | $this->sPreFunction = $mFunction; |
|
| 483 | } |
|
| 484 | } |
|
| 485 | ||
| 486 | /** |
|
| 487 | * Returns true if xajax can process the request, false if otherwise. |
|