Commit Graph

28 Commits

Author SHA1 Message Date
Ingo Schommer
24b768ecfe BUGFIX Using actual step instances instead of half-complete ArrayData templates in MultiForm->getAllStepsLinear()/getAllStepsRecursive(). Linking current form instance on these steps, and ensuring the title has a fallback to classname globally (not just when retrieving steps through getAllSteps*() methods) 2013-01-03 09:48:51 +01:00
Sean Harvey
6bbe69079d MINOR Updating code to support SS 3.0, still maintains backwards compatibility with 2.4, just not in the tests. 2012-05-14 15:23:01 +12:00
ajshort
01ff2cb36a ENHANCEMENT: Added a method to set the link where the form is displayed, allowing multiforms to run inside controller actions. 2011-12-19 21:38:25 +11:00
ajshort
65d1681331 MINOR: Make the form reference consistently available on form steps. 2011-12-19 14:21:47 +11:00
Sean Harvey
1374144435 API CHANGE Changed MultiFormStep::$next_steps to public, and MultiFormStep::$is_final_step to public 2010-05-11 03:35:40 +00:00
Sean Harvey
60fa84df85 ENHANCEMENT Custom text for back/next and submit buttons on a per-step basis (defaults to MultiForm.BACK, MultiForm.SUBMIT etc translatable entities) 2010-05-11 03:27:42 +00:00
Sean Harvey
b84fae26a3 BUGFIX Checking $this->Data exists before trying to unserialize it 2010-05-11 03:20:33 +00:00
Ingo Schommer
89513c6da6 MINOR Fixed SQL quoting (requires 2.4)
MINOR Added ingo at ss dot org as a maintainer
2010-03-22 10:49:04 +00:00
Sean Harvey
cbc7d246ac MINOR Fixed notice if $this->Data is false/null as unserialize() first parameter 2009-10-22 20:57:54 +00:00
Sean Harvey
8e04dfbaa5 MINOR Tidy up of tests 2009-07-20 09:22:49 +00:00
Normann Lou
07120018bf BUGFIX: MultiFormStep::saveInto() need the current Controller as the new $form Controller to work 2009-06-03 01:47:36 +00:00
Will Rossiter
3690de6943 MINOR: added is_numeric check to prevent form failing on certain cases 2009-01-29 09:27:17 +00:00
Ingo Schommer
a867db5fe8 ENHANCEMENT Added MultiFormStep->saveInto() to simulate Form->saveInto() behaviour with a stub form. This is preferred method of saving step data into a DataObject, instead of using $myObj->update($myStep->loadData()), is update() doesn't trigger custom formfield saving behaviour (e.g. to save relations on an existing dataobject for CheckboxSetField) 2008-10-09 00:36:46 +00:00
Sean Harvey
053ac04387 MINOR Removed @usedby, it's not a valid phpdoc token 2008-10-01 21:06:56 +00:00
Ingo Schommer
7968b09fea ENHANCEMENT Added MultiForm->getSavedSteps() and MultiForm->getSavedStepByClass()
ENHANCEMENT Added MultiFormStep->validateStep() for custom validation routines
ENHANCEMENT Changed MultiForm->save() to use $form->getData() instead of $data to ensure that all fields are saveable into a DataObject (had trouble with ConfirmedPasswordField returning array instead of string)
2008-10-01 18:36:52 +00:00
Sean Harvey
a42bb6103b BUGFIX Removing url_type which isnt very useful MINOR documentation updates ENHANCEMENT return value on MultiForm->setCurrentStep() MINOR code cleanup in general 2008-07-21 21:06:59 +00:00
Sean Harvey
35f2de5de3 ENHANCEMENT MultiFormStep->form can now be accessed to return the form that the step was created on 2008-06-18 08:07:11 +00:00
Sean Harvey
2bb5983f19 Added TODO for what $can_go_back doesn't do yet! 2008-05-27 04:54:24 +00:00
Sean Harvey
4f758064d9 FEATURE Allow setting a flag (true, by default) so that you can't use the "back" form action for a step. 2008-05-27 04:49:16 +00:00
Sean Harvey
75a4fb78d5 Added TODO 2008-04-29 09:50:06 +00:00
Sean Harvey
6f07bf39b2 Added phpdoc to methods and classes 2008-04-22 11:03:03 +00:00
Sean Harvey
ec747bc6c6 Documented loadData() and saveData() 2008-04-21 08:54:48 +00:00
Sean Harvey
22d9241021 Added getPreviousStepFromDatabase() to return the previous step class record from the database (if it exists!) 2008-04-21 05:06:47 +00:00
Sean Harvey
0d3196607a Made use of MultiFormStep::getNextStepFromDatabase() instead of direct DO::get() call, and check for SessionID before attempting a DO::get() 2008-04-20 00:39:01 +00:00
Sean Harvey
facf2e3833 Docs, bug fixes in code 2008-04-20 00:28:49 +00:00
Sean Harvey
01fe23fe2f Removed unused methods 2008-04-19 01:19:47 +00:00
Sean Harvey
39005fdf84 Added support for Hash identification of a MultiFormSession - probably needs some encapsulation, as we're adding more code to init(), and encapsulate the checking of this->stat('url_type') into it's own method, so you don't need to do the ternary operator so much 2008-04-19 01:14:16 +00:00
Sean Harvey
5c76350fba 2008-04-17 22:03:51 +00:00