Skip to content

Commit c4dc6ca

Browse files
committed
Ver.23 release.
1 parent 2b50d87 commit c4dc6ca

10 files changed

Lines changed: 45 additions & 66 deletions

.travis.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# FMDataAPI Ver.22 [![Build Status](https://github.com/msyk/FMDataAPI/actions/workflows/php.yml/badge.svg)](https://github.com/msyk/FMDataAPI/actions/workflows/php.yml)
1+
# FMDataAPI Ver.23 [![Build Status](https://github.com/msyk/FMDataAPI/actions/workflows/php.yml/badge.svg)](https://github.com/msyk/FMDataAPI/actions/workflows/php.yml)
22

33
by Masayuki Nii (nii@msyk.net)
44

@@ -59,29 +59,28 @@ Bug reports and contribution are welcome.
5959

6060
## Installing to Your Project
6161

62-
The file "FMDataAPI.php" contains all you need to access FileMaker Data API.
63-
You can download it or clone this repository.
64-
6562
FMDataAPI has "composer.json," so you can add your composer.json file in your project as below.
6663

6764
```
6865
...
6966
"require": {
7067
...
71-
"inter-mediator/fmdataapi":"22"
68+
"inter-mediator/fmdataapi":"23"
7269
} ...
7370
```
7471

7572
## About Files and Directories
7673

77-
- FMDataAPI.php
74+
- src/FMDataAPI.php
7875
- The core class, and you just use this for your application.
79-
This class and inner private classes are object-oriented REST API
76+
This class and supporting classes are object-oriented REST API
8077
wrappers.
78+
- src/Supporting/*.php
79+
- The supporting classes for the FMDataAPI class. Perhaps you don't need to create these classes, but you have to handle methods on them.
8180
- composer.json, composer.lock
8281
- Composer information files.
8382
- Sample_results.ipynb
84-
- Sample program and results with Jupyter Notebook style.
83+
- Sample program and results with Jupyter Notebook style. Sorry for slight old version results.
8584
- samples/FMDataAPI_Sample.php and cat.jpg
8685
- This is the sample program of FMDataAPI class, and shows how to
8786
use FMDataAPI class. It includes rich comments,
@@ -90,8 +89,8 @@ FMDataAPI has "composer.json," so you can add your composer.json file in your pr
9089
- These are for GitHub.
9190
- test
9291
- Some files for unit testing.
93-
- .travis.yml
94-
- Setting file for TravisCI.
92+
- .github, docker-compose.yml, Dockerfile
93+
- For the GitHub action with testing.
9594

9695
## Licence
9796

@@ -158,6 +157,8 @@ MIT License
158157
Checked on the FileMaker Server 19.
159158
- 2021-02-10: [Ver.22]
160159
Setting the timeout value about cURL. Thanks to @montaniasystemab. Also thanks to @AnnoyingTechnology for correcting.
160+
- 2021-02-10: [Ver.23]
161+
File structure is updated for PSR-4. Thanks to tkuijer.
161162

162163
## API Differences between ver.8 and 7.
163164
### FMDataAPI class

composer.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "inter-mediator/fmdataapi",
3-
"version": "22",
3+
"version": "23",
44
"time": "2021-02-10",
55
"repositories": [
66
{
@@ -53,6 +53,18 @@
5353
},
5454
{
5555
"name": "Bernhard Schulz (Contributor)"
56+
},
57+
{
58+
"name": "montaniasystemab (Contributor)"
59+
},
60+
{
61+
"name": "Rickard Andersson (Contributor)"
62+
},
63+
{
64+
"name": "Julien @AnnoyingTechnology (Contributor)"
65+
},
66+
{
67+
"name": "Tom Kuijer (Contributor)"
5668
}
5769
],
5870
"support": {
@@ -66,7 +78,7 @@
6678
"./vendor/bin/phpunit --bootstrap ./vendor/autoload.php --configuration ./test/phpunit.xml ./test/FMDataAPIUnitTest.php"
6779
],
6880
"doc": [
69-
"./vendor/bin/phpdoc -f ./FMDataAPI.php -t ../INTER-Mediator_Documents/FMDataAPI"
81+
"./vendor/bin/phpdoc -f ./src/FMDataAPI.php -t ../INTER-Mediator_Documents/FMDataAPI"
7082
]
7183
}
7284
}

composer.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/FMDataAPI_Sample.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
* Date: 2017/04/24
66
* Time: 17:41
77
*/
8+
/*******************************************
9+
* Before you try to this sample program, you have to execute "composer update" on this root directory.
10+
*******************************************/
811
// First of all, the FMDataAPI.php file has to be included. All classes are defined in it.
912
include_once "../vendor/autoload.php";
1013

@@ -234,7 +237,7 @@
234237

235238
// The 'query()' method can have several parameters. The portal specification has to be an array
236239
// with the object name of the portal not the table occurrence name.
237-
$portal = array("contact_to");
240+
$portal = array("Contact");
238241
$result = $fmdb->person_layout->query(array(array("id" => "1")), null, 1, -1, $portal);
239242
if (!is_null($result)) {
240243
foreach ($result as $record) {
@@ -245,7 +248,7 @@
245248
}
246249
}
247250
// The 'query()' method can have several parameters. The second parameter is for sorting.
248-
$portal = array("contact_to");
251+
$portal = array("Contact");
249252
$result = $fmdb->person_layout->query(array(array("id" => "1...")), array(array("id", "descend")), 1, -1, $portal);
250253
if (!is_null($result)) {
251254
foreach ($result as $record) {

src/FMDataAPI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* @link https://github.com/msyk/FMDataAPI GitHub Repository
1414
* @property-read FileMakerLayout $<<layout_name>> Returns the FileMakerLayout object from the layout named with the property.
1515
* If the layout doesn't exist, no error arises here. Any errors might arise on methods of FileMakerLayout class.
16-
* @version 22
16+
* @version 23
1717
* @author Masayuki Nii <nii@msyk.net>
1818
* @copyright 2017-2021 Masayuki Nii (Claris FileMaker is registered trademarks of Claris International Inc. in the U.S. and other countries.)
1919
* @source 1 100000 The source code.

src/Supporting/CommunicationProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* @package INTER-Mediator\FileMakerServer\RESTAPI
99
* @link https://github.com/msyk/FMDataAPI GitHub Repository
10-
* @version 22
10+
* @version 23
1111
* @author Masayuki Nii <nii@msyk.net>
1212
* @copyright 2017-2021 Masayuki Nii (Claris FileMaker is registered trademarks of Claris International Inc. in the U.S. and other countries.)
1313
*/

src/Supporting/FileMakerLayout.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
* @package INTER-Mediator\FileMakerServer\RESTAPI
1212
* @link https://github.com/msyk/FMDataAPI GitHub Repository
13-
* @version 22
13+
* @version 23
1414
* @author Masayuki Nii <nii@msyk.net>
1515
* @copyright 2017-2021 Masayuki Nii (Claris FileMaker is registered trademarks of Claris International Inc. in the U.S. and other countries.)
1616
*/

src/Supporting/FileMakerRelation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* @property string $<<field_name>> The field value named as the property name.
1515
* @property FileMakerRelation $<<portal_name>> FileMakerRelation object associated with the property name.
1616
* The table occurrence name of the portal can be the 'portal_name,' and also the object name of the portal.
17-
* @version 22
17+
* @version 23
1818
* @author Masayuki Nii <nii@msyk.net>
1919
* @copyright 2017-2021 Masayuki Nii (Claris FileMaker is registered trademarks of Claris International Inc. in the U.S. and other countries.)
2020
*/

test/.phpunit.result.cache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"version":1,"defects":[],"times":{"INTERMediator\\FileMakerServer\\RESTAPI\\FMDataAPIUnitTest::test_initializeObjects":0.009,"INTERMediator\\FileMakerServer\\RESTAPI\\FMDataAPIUnitTest::test_Query":0.005,"INTERMediator\\FileMakerServer\\RESTAPI\\FMDataAPIUnitTest::test_ErrorQuery":0}}
1+
{"version":1,"defects":[],"times":{"INTERMediator\\FileMakerServer\\RESTAPI\\FMDataAPIUnitTest::test_initializeObjects":0.005,"INTERMediator\\FileMakerServer\\RESTAPI\\FMDataAPIUnitTest::test_Query":0.001,"INTERMediator\\FileMakerServer\\RESTAPI\\FMDataAPIUnitTest::test_ErrorQuery":0}}

0 commit comments

Comments
 (0)