|
3 | 3 | /** |
4 | 4 | * Object-oriented class for the REST API in FileMaker Server 18/Cloud. |
5 | 5 | * |
6 | | - * @version 20.0 |
| 6 | + * @version 21.0 |
7 | 7 | * @author Masayuki Nii <nii@msyk.net> |
8 | | - * @copyright 2017-2019 Masayuki Nii (FileMaker is registered trademarks of FileMaker, Inc. in the U.S. and other countries.) |
| 8 | + * @copyright 2017-2020 Masayuki Nii (FileMaker is registered trademarks of FileMaker, Inc. in the U.S. and other countries.) |
9 | 9 | */ |
10 | 10 |
|
11 | 11 | namespace INTERMediator\FileMakerServer\RESTAPI; |
|
21 | 21 | * @link https://github.com/msyk/FMDataAPI GitHub Repository |
22 | 22 | * @property-read FileMakerLayout $<<layout_name>> Returns the FileMakerLayout object from the layout named with the property. |
23 | 23 | * If the layout doesn't exist, no error arises here. Any errors might arise on methods of FileMakerLayout class. |
24 | | - * @version 20 |
| 24 | + * @version 21 |
25 | 25 | * @author Masayuki Nii <nii@msyk.net> |
26 | | - * @copyright 2017-2019 Masayuki Nii (FileMaker is registered trademarks of FileMaker, Inc. in the U.S. and other countries.) |
| 26 | + * @copyright 2017-2020 Masayuki Nii (FileMaker is registered trademarks of FileMaker, Inc. in the U.S. and other countries.) |
27 | 27 | * @source 1 100000 The source code. |
28 | 28 | */ |
29 | 29 | class FMDataAPI |
@@ -363,9 +363,9 @@ public function getReturnedCount() |
363 | 363 | * |
364 | 364 | * @package INTER-Mediator\FileMakerServer\RESTAPI |
365 | 365 | * @link https://github.com/msyk/FMDataAPI GitHub Repository |
366 | | - * @version 20 |
| 366 | + * @version 21 |
367 | 367 | * @author Masayuki Nii <nii@msyk.net> |
368 | | - * @copyright 2017-2019 Masayuki Nii (FileMaker is registered trademarks of FileMaker, Inc. in the U.S. and other countries.) |
| 368 | + * @copyright 2017-2020 Masayuki Nii (FileMaker is registered trademarks of FileMaker, Inc. in the U.S. and other countries.) |
369 | 369 | */ |
370 | 370 | class FileMakerLayout |
371 | 371 | { |
@@ -961,9 +961,9 @@ public function getScriptResultPresort() |
961 | 961 | * @property string $<<field_name>> The field value named as the property name. |
962 | 962 | * @property FileMakerRelation $<<portal_name>> FileMakerRelation object associated with the property name. |
963 | 963 | * The table occurrence name of the portal can be the 'portal_name,' and also the object name of the portal. |
964 | | - * @version 02 |
| 964 | + * @version 21 |
965 | 965 | * @author Masayuki Nii <nii@msyk.net> |
966 | | - * @copyright 2017-2019 Masayuki Nii (FileMaker is registered trademarks of FileMaker, Inc. in the U.S. and other countries.) |
| 966 | + * @copyright 2017-2020 Masayuki Nii (FileMaker is registered trademarks of FileMaker, Inc. in the U.S. and other countries.) |
967 | 967 | */ |
968 | 968 | class FileMakerRelation implements \Iterator |
969 | 969 | { |
@@ -1272,6 +1272,8 @@ public function field($name, $toName = null) |
1272 | 1272 | $this->data->portalData->$name, |
1273 | 1273 | property_exists($this->data, 'portalDataInfo') ? $this->data->portalDataInfo : null, |
1274 | 1274 | "PORTAL", 0, $name, $this->restAPI); |
| 1275 | + } else if (isset($this->data->fieldData->$fieldName)){ |
| 1276 | + $value = $this->data->fieldData->$fieldName; |
1275 | 1277 | } |
1276 | 1278 | break; |
1277 | 1279 | case "PORTALRECORD": |
@@ -1441,9 +1443,9 @@ public function rewind() |
1441 | 1443 | * |
1442 | 1444 | * @package INTER-Mediator\FileMakerServer\RESTAPI |
1443 | 1445 | * @link https://github.com/msyk/FMDataAPI GitHub Repository |
1444 | | - * @version 20 |
| 1446 | + * @version 21 |
1445 | 1447 | * @author Masayuki Nii <nii@msyk.net> |
1446 | | - * @copyright 2017-2019 Masayuki Nii (FileMaker is registered trademarks of FileMaker, Inc. in the U.S. and other countries.) |
| 1448 | + * @copyright 2017-2020 Masayuki Nii (FileMaker is registered trademarks of FileMaker, Inc. in the U.S. and other countries.) |
1447 | 1449 | */ |
1448 | 1450 | class CommunicationProvider |
1449 | 1451 | { |
|
0 commit comments