Commit Graph

16 Commits

Author SHA1 Message Date
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