From 50434f4f01343d48fe6e2e7723d875aa89331b0f Mon Sep 17 00:00:00 2001 From: debabratapatra Date: Tue, 5 Apr 2016 11:33:14 +0530 Subject: [PATCH 1/4] Added Portal Doc. --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6d355b1..13a84e9 100644 --- a/README.md +++ b/README.md @@ -147,10 +147,18 @@ The firstOrNew method, like firstOrCreate will attempt to locate a record in the You can execute a filemaker script by following command. Please pass script name and parameter to performScript function. Then you need to use get() inorder to get the expected result. - $this->performScript('Web_Contact_Creation_Script', 'Closed Contract')->get('ContractName'); + $this->performScript('Web_Contact_Creation_Script', 'test_value')->get('test_field1'); +## Access Portals +No extra work needed. This package is smart enough to access all portals attached to the layout automatically. +Ex: Suppose you have a portal test_portal inside test layout. Suppose test_portal has one field portal_field1 and three rows. Then you will result like below. + "test_portal::portal_field1" => array:3 [▼ + 0 => "Test1" + 1 => "Test2" + 2 => "Test3" + ] From 8fe7cad7078f8bbf2eb516ee91b64805d4a97ced Mon Sep 17 00:00:00 2001 From: debabratapatra Date: Tue, 5 Apr 2016 11:42:12 +0530 Subject: [PATCH 2/4] Removed FM API. --- README.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/README.md b/README.md index 13a84e9..951e7d4 100644 --- a/README.md +++ b/README.md @@ -15,10 +15,6 @@ Add below line in require section of your composer.json. You need to load official filemaker library through composer. [This is your choice] -You can also use our filemaker github library by adding below line in your composer.json. - - "lakinmohapatra/filemakerapi" : '14.0.2' or '13.0.0' or '12.0.0' or '11.0.0' or '10.0.0' or '9.0.0' - Run the following command in terminal to install FileMakerLaravel composer update From 53032b1928faa48c361e69335a2539316823636c Mon Sep 17 00:00:00 2001 From: lakinmohapatra Date: Fri, 8 Apr 2016 11:09:55 +0530 Subject: [PATCH 3/4] Add docs for filemaker official php api --- README.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 951e7d4..77f91bc 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,27 @@ Add below line in require section of your composer.json. lakinmohapatra/filemaker_laravel": "*" -You need to load official filemaker library through composer. [This is your choice] +# Ways to load official FileMaker php api. + +1. Make filemaker official library as a laravel package and load it via composer. + + +2. As our package is dependent upon official filemaker api, you need to load it through composer autoload. + Steps to do it. + + 1. Go to vendor/lakinmohapatra/ + 2. Create a directory named "filemakerapi" + 3. Paste the FileMaker.php file with dependent class files. + +Go to composer.json present in your root directory . And add the following lines. + + "autoload": { + "classmap": [ + "vendor/lakinmohapatra/filemakerapi/FileMaker.php" + ], + } + +This will autoload FileMaker.php and make it available throughout our package. Run the following command in terminal to install FileMakerLaravel From 7d12e63a8fe6e0225cc08723f02cb729a21f7a38 Mon Sep 17 00:00:00 2001 From: Lakin Mohapatra Date: Fri, 8 Apr 2016 12:10:21 +0530 Subject: [PATCH 4/4] Remove dead codes from model --- .sonar/report-task.txt | 5 ----- sonar-project.properties | 8 -------- src/Database/Eloquent/Model.php | 7 ------- 3 files changed, 20 deletions(-) delete mode 100644 .sonar/report-task.txt delete mode 100644 sonar-project.properties diff --git a/.sonar/report-task.txt b/.sonar/report-task.txt deleted file mode 100644 index 36f7aa1..0000000 --- a/.sonar/report-task.txt +++ /dev/null @@ -1,5 +0,0 @@ -projectKey=filemaker_laravel -serverUrl=http://localhost:9000 -dashboardUrl=http://localhost:9000/dashboard/index/filemaker_laravel -ceTaskId=AVOIwfsgoHrQyMGdoimA -ceTaskUrl=http://localhost:9000/api/ce/task?id=AVOIwfsgoHrQyMGdoimA diff --git a/sonar-project.properties b/sonar-project.properties deleted file mode 100644 index 0da6f45..0000000 --- a/sonar-project.properties +++ /dev/null @@ -1,8 +0,0 @@ -sonar.projectKey=filemaker_laravel -sonar.projectName=filemaker_laravel -sonar.projectVersion=1.0 - -# Modules inherit properties set at parent level -sonar.sources=src -sonar.language=php -sonar.sourceEncoding=UTF-8 diff --git a/src/Database/Eloquent/Model.php b/src/Database/Eloquent/Model.php index 4f62972..3d42b57 100644 --- a/src/Database/Eloquent/Model.php +++ b/src/Database/Eloquent/Model.php @@ -225,12 +225,5 @@ public static function firstOrNew(array $attributes) return $instance; } return new static($attributes); - - /*$model = new static(); - foreach ($attributes as $attributeKey => $attributeValue) { - $model->$attributeKey = $attributeValue; - } - - return $model;*/ } }