You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+49Lines changed: 49 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,8 @@ Install via [Composer](http://getcomposer.org/):
10
10
$ composer require robgridley/pace-api
11
11
```
12
12
13
+
PHP 8.1+ with the SOAP, SimpleXML and Fileinfo extensions required.
14
+
13
15
## Testing
14
16
15
17
PHPUnit tests with 100% code coverage for `Model`, `KeyCollection` and `XPath\Builder` classes.
@@ -409,6 +411,53 @@ $pace->report(100)
409
411
->print();
410
412
```
411
413
414
+
## Invoke Action
415
+
416
+
The invoke action service methods are exposed as PHP methods. You can find a list of methods and their arguments in the InvokeAction.wsdl file provided with the Pace SDK. Arguments must be passed in the order specified in the WSDL.
If the method requires a complex type, you will need to pass an array.
431
+
432
+
If one of the arguments is an instance of a model, it will automatically be converted to a complex type containing the model's primary key. The two examples above make use of this feature. Additionally, if your complex type array contains a model, it will automatically be converted to the model's primary key.
Finally, the result of the invoke action call can be accessed like an array, converted to an array, or converted to a model (if the method returns the matching complex type).
454
+
455
+
```php
456
+
$result['estimateNumber']; // returns the estimate number
457
+
$result->toArray(); // returns an array
458
+
$result->toModel('Estimate'); // returns an estimate model
459
+
```
460
+
412
461
## Version
413
462
414
463
Identify the version of Pace running on the server.
0 commit comments