concrete5/concrete5 — pull request #601 by JohntheFish (2012-07-24 04:02:15+00:00)
Title: Selectively enable/disable data prersistence & id

Re-worked pull request 587 that I made on the master branch into
the 553 devel branch.
https://github.com/concrete5/concrete5/pull/587

NOTE: This has not been tested within this branch, other than to check
compilation.

Selectively enable/disable data continuity/prersistence and selectively
enable/disable id output. Defaults to compatibility with previous form
helper.

Facility to turn of id attributes for better validation and avoiding dom
errors from duplicate ids.
Enable/disable ID output (default enabled)
enableIdOutput()
disableIdOutput()

Facility to turn off data continuity/prersistence for more flexible use
in dialogs and single pages.
Enable/disable data continuity/prersistence etc (default enabled)
enableFormContinuity()
disableFormContinuity()

To facilitate further expansion, method inputType() is now public.

The new code is simple but verbose as it just wraps much of the existing
code in tests for these conditions rather than be too clever and add to
already tortuous logic.