Skip to content

Feature/core 6186 #69

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
composer.phar
vendor/
*.zip

# Commit your application's lock file http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
# composer.lock
composer.lock
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -2,8 +2,8 @@
"name" : "pdffiller/pdffiller-php-api-client",
"description": "PHP client for pdffiller.com REST API",
"require": {
"league/oauth2-client": "^1.0",
"symfony/translation": "^3.0"
"league/oauth2-client": "^1.0 || ^2.0",
"symfony/translation": "^4.0"
},
"require-dev": {
"adammbalogh/key-value-store-file": "^0.5.3",
872 changes: 0 additions & 872 deletions composer.lock

This file was deleted.

2 changes: 1 addition & 1 deletion examples/fillable_template/1_get_dictionary.php
Original file line number Diff line number Diff line change
@@ -2,6 +2,6 @@
use PDFfiller\OAuth2\Client\Provider\FillableTemplate;

$provider = require_once __DIR__ . '/../bootstrap/initWithFabric.php';
$e = FillableTemplate::dictionary($provider, 53690143);
$e = FillableTemplate::dictionary($provider, 67158068);
dd($e->toArray());

2 changes: 1 addition & 1 deletion examples/fillable_template/2_make_fillable_template.php
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
$provider = require_once __DIR__ . '/../bootstrap/initWithFabric.php';

$fillableTemplate = new FillableTemplate($provider);
$fillableTemplate->document_id = 53690143;
$fillableTemplate->document_id = 67158068;
$fillableTemplate->fillable_fields['Text_1'] = 'Hop hey lalaley';
$fillableTemplate->fillable_fields['Number_1'] = '2016';
$fillableTemplate->fillable_fields['Checkbox_1'] = '1';
8 changes: 8 additions & 0 deletions src/FillableField.php
Original file line number Diff line number Diff line change
@@ -13,6 +13,10 @@
* @property string $format
* @property mixed $initial
* @property boolean $required
* @property string $maxChars
* @property string $maxLines
* @property array $list
* @property bool $allowCustomText
*/
class FillableField extends Object
{
@@ -22,5 +26,9 @@ class FillableField extends Object
'format',
'initial',
'required',
'maxChars',
'maxLines',
'list',
'allowCustomText'
];
}
15 changes: 0 additions & 15 deletions src/FillableTemplate.php
Original file line number Diff line number Diff line change
@@ -110,19 +110,4 @@ public function getFillableFields()

return $this->fillable_fields;
}

/**
* Returns array representation of an object
*
* @param array $options
* @return array
*/
public function toArray($options = [])
{
$options = array_merge_recursive($options, [
'except' => ['document_id']
]);

return parent::toArray($options);
}
}