Skip to content

Add a StateDocumentsFilter class #47

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

Closed
wants to merge 1 commit into from
Closed

Add a StateDocumentsFilter class #47

wants to merge 1 commit into from

Conversation

Lctrs
Copy link

@Lctrs Lctrs commented Mar 7, 2017

Prepare the implementation of https://github.com/adlnet/xAPI-Spec/blob/master/xAPI-Communication.md#23-state-resource

Basically, what I have in mind is to mimic the implementation for Statements by adding :

  • a filter class in this package (this PR)
  • a repository interface in the php-xapi/repository-api package
  • a serializer interface in the php-xapi/serializer package

Then do the works in our LrsBundle.

@Lctrs
Copy link
Author

Lctrs commented Mar 8, 2017

Re reading this part of the specification, I'm uncertain on what model we should handle. Is it just State or the StateDocument ?

WDYT @xabbuh ?

@Lctrs
Copy link
Author

Lctrs commented Mar 9, 2017

I'm almost certain it's StateDocument. It doesn't have any sense otherwise.

@xabbuh
Copy link
Contributor

xabbuh commented Jun 5, 2017

Thank you @Lctrs.

xabbuh added a commit that referenced this pull request Jun 5, 2017
This PR was submitted for the master branch but it was merged into the 1.x branch instead (closes #47).

Discussion
----------

Add a StateDocumentsFilter class

Prepare the implementation of https://github.com/adlnet/xAPI-Spec/blob/master/xAPI-Communication.md#23-state-resource

Basically, what I have in mind is to mimic the implementation for Statements by adding :
- a filter class in this package (this PR)
- a repository interface in the `php-xapi/repository-api` package
- a serializer interface in the `php-xapi/serializer` package

Then do the works in our LrsBundle.

Commits
-------

889a9aa Add a StateDocumentsFilter class
xabbuh added a commit that referenced this pull request Jun 5, 2017
@xabbuh xabbuh closed this Jun 5, 2017
@Lctrs Lctrs deleted the feature/state-documents-filter branch June 6, 2017 08:16
xabbuh added a commit that referenced this pull request Apr 23, 2018
* 1.x:
  bump version for removal of deprecated features
  drop build job for HHVM
  [#47] add changelog entry
  Add a StateDocumentsFilter class
  Deprecate constructing State with anything other than Agent as 2nd argument
  [#60] remove unneeded docblocks
  Introduce a new Person class
  add spec test to not use version when comparing
xabbuh added a commit that referenced this pull request Apr 23, 2018
* 2.x:
  update year in license
  fix typo
  bump version for removal of deprecated features
  fix Travis CI job
  update changelog
  bump version for removal of deprecated features
  drop build job for HHVM
  [#47] add changelog entry
  Add a StateDocumentsFilter class
  Deprecate constructing State with anything other than Agent as 2nd argument
  [#60] remove unneeded docblocks
  Introduce a new Person class
  add spec test to not use version when comparing

Conflicts:
	.travis.yml
	CHANGELOG.md
	src/State.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants