Adds an AllSerializer Class

Updates SerializerFactoryTest to eliminate class conflicts
Allows running the full Serializer Plugin Test Suite

Signed-off-by: Justin Yost <justin@loadsys.com>
Adds an AfterSerialize Callback method

Default AfterSerialize method passes back the input

Signed-off-by: Justin Yost <justin@loadsys.com>
Allows for Default Serializers to be created at run time

Permits not creating Serializer Class for a new resource, and uses Model schema for the attributes

Signed-off-by: Justin Yost <justin@loadsys.com>
Requires a set of attributes to be passed to the Serializer

Throws an exception if all of the required attributes are not included

Signed-off-by: Justin Yost <justin@loadsys.com>
Start of work on optional Serializer fields

Signed-off-by: Justin Yost <justin@loadsys.com>
Travis.yml file

Based on the DebugKit Version

Signed-off-by: Justin Yost <justin@loadsys.com>
Updates AfterSerialize Callback to pass both json and original record

Signed-off-by: Justin Yost <justin@loadsys.com>
Allows for creating a list of optional attributes

If an optional attribute is provided to the Serializer, it will be Serialized and returned
If an optional attribute is not provided, the Serializer will not add it to the output
No errors are thrown when optionals are missing

Signed-off-by: Justin Yost <justin@loadsys.com>
Updated Travis.yml File

Dropped Database Related CI Setup

Signed-off-by: Justin Yost <justin@loadsys.com>
More processing of specials keys in the data record

Ignores keys in the data record that are not set in either the attributes or the optional
Ignores keys in the data record that are first character UpperCase ie. a related model

Signed-off-by: Justin Yost <justin@loadsys.com>
Correts Bug with Default Serializers

Signed-off-by: Justin Yost <justin@loadsys.com>
Calls Method for Optional Attributes Not Present in Data

Allows for setting up a method for data that is not present, this method must however be set as an optional attribute
Testing the SerializerIgnoreException - allows for throwing an exception to skip keys, Exception is caught by the base Serializer Class

Signed-off-by: Justin Yost <justin@loadsys.com>
Changed attributes property to required

attributes property for Serializers is now named required, better reflects what it is the required attributes
Renamed Test Classes generated to be Test{Name} Classes

Signed-off-by: Justin Yost <justin@loadsys.com>
Updated Travis.yml File

Drops Full support for PHP 5.3 and Cake 2.1 -> Cake 2.3

Signed-off-by: Justin Yost <justin@loadsys.com>
Updated Travis.yml file to Create Databases

Signed-off-by: Justin Yost <justin@loadsys.com>
Updates the Readme

Adds Information in the Readme for:
* Testing
* Default Setup
* Customization Setup
* Required vs. Optional Attributes
* Methods for Optional Attributes
* SerializerIgnoreException
* SerializerMissingRequiredException
* Reporting Issues
* Development of the App
Closes #5

Signed-off-by: Justin Yost <justin@loadsys.com>
Adds Build Status Icon to the Readme File

Signed-off-by: Justin Yost <justin@loadsys.com>
Updated Readme

Some improved documenation including a section on the AfterSerializer Callback

Signed-off-by: Justin Yost <justin@loadsys.com>
Merge pull request #4 from loadsys/f/default-serializers

F/default serializers