PhalconModelJSONDistiller.php extends the Phalcon ORM Model class to add a set of methods which will process or "distill" a complex JSON object that matches the user defined model. Extending this model for your PHP model class will let your application accept JSON representations of that model class as a string parameter to the distill method. The distill method will automatically populate your model if the JSON object keys match the names of the model properties--by convention. It handles nested objects by processing each recursively.
Join GitHub today
Extended Phalcon ORM Model class parses JSON representations of a user-defined model automatically--matching JSON key value pairs to object properties while handling nested objects for one-to-many relationships.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|