~intrahealth+informatics/i2ce/3.2-dev

Viewing all changes in revision 209.1.1.

  • Committer: Carl Leitner
  • Date: 2008-04-06 19:20:00 UTC
  • mto: This revision was merged to the branch mainline in revision 210.
  • Revision ID: litlfred@cardamom-20080406192000-s7hgzn7tz3q51fur
New version of Forms -- all the addField data can now be stored
in magic data /modules/forms/formClasses/<CLASS_NAME>/fields
the setMap and setLink data is also stored there and you can
set default value.

Why did i do this? basically as prep work for custom forms..
now at least the magic data nows what fields there are and what
form classes there are.   

there is a utility under tools/conver_to_3_0_1000 to generate the
config xml to define the fields.    just call:
        convert_forms.php class1.php class2.php .... classN.php
where classX.php  extends I2CE_Form.

Note:  you do not have to do this.  the old way of dealing with
form fields in the constructor will still work just the same.
in fact this is the case with LocationSelect as it is too messy to
try to deal with in this manner.  So no i did not break anything.
You still need to use the constrctor to set default values which
are dynamic -- such as the type for list forms or a date.


I also changed User_Form so that it behaves like the rest of the
form objects.

i also fixed a bug with updating magic data.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: