jwaterworth / php-dynamics-crm-2011

Automatically exported from code.google.com/p/php-dynamics-crm-2011
0 stars 0 forks source link

Handle OptionSet values using the available options from the Schema #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
OptionSet values are currently implemented as as stdClass

Instead, create an OptionSet class that can parse the OptionSet tag on the 
Entity schema and restrict to valid values

Original issue reported on code.google.com by N.M.Pr...@gmail.com on 23 Mar 2012 at 7:47

GoogleCodeExporter commented 9 years ago
Strongly recommended before Friday's v1.0.0 release

Original comment by N.M.Pr...@gmail.com on 23 Mar 2012 at 9:11

GoogleCodeExporter commented 9 years ago
I'll pick this one up today

Original comment by N.M.Pr...@gmail.com on 23 Mar 2012 at 9:11

GoogleCodeExporter commented 9 years ago
OptionSet needs to be handled in:
* __construct (determine valid options)
* __get -> return an Object of type DynamicsCRM2011_OptionSetValue
* __set -> Handle either Int, String or Object values & Validate
* setAttributesFromDOM -> set the Value appropriately
* getEntityDOM -> Create the right XML
* printDetails -> Display Value nicely

Original comment by N.M.Pr...@gmail.com on 23 Mar 2012 at 11:23

GoogleCodeExporter commented 9 years ago
Done & Tested

Original comment by N.M.Pr...@gmail.com on 23 Mar 2012 at 12:01