Sean Harvey
647a5257e3
MINOR Removed unused static function is_action_field from MultiForm
2008-10-01 21:10:20 +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
228d03592e
MINOR Removed old MultiForm::__construct() comments
2008-09-20 09:36:54 +00:00
Sean Harvey
c97022314f
MINOR Code syntax formatting and removal of useless comment
2008-09-20 09:31:44 +00:00
Sean Harvey
0512155cbe
MINOR Updated MultiFormTest class comments
2008-09-20 09:27:38 +00:00
Sean Harvey
c5916ffaf0
MINOR Made MultiForm test classes implement TestOnly so they're only used for testing purposes
2008-09-20 09:22:01 +00:00
Sean Harvey
6ac64b13a6
Updated README to reflect more accurate information
2008-09-17 23:48:39 +00:00
Ingo Schommer
2e9d07cde2
MINOR Added or edited README files, added LICENSE and CHANGELOG files
2008-09-17 00:06:17 +00:00
Sam Minnee
e2d8ace250
Fixed multi form test
2008-08-21 08:17:04 +00:00
Sean Harvey
1ba27d9c7d
MINOR Removed MultiFormSession::[Data] which is never used
2008-07-21 21:07:48 +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
1b662ff9e1
BUGFIX $this->form wasn't accessible on MultiFormStep because it wasn't being set by MultiForm->__construct() early enough in the piece
2008-07-21 05:22:06 +00:00
Sean Harvey
69b5cd6686
Don't validate if not necessary - merged from branches/kiwiselect
2008-07-21 05:14:04 +00:00
Sean Harvey
6abbe5b44f
MINOR where[] can't be used for reading
2008-07-21 04:40:18 +00:00
Sean Harvey
8d138f4059
MINOR Removed 3 useless lines of code
2008-07-21 03:34:27 +00:00
Sean Harvey
e843930e69
MINOR added @TODO note for MultiFormTest
2008-07-21 03:27:44 +00:00
Sean Harvey
78080c6238
ENHANCEMENT Correct use of parent::__construct() so that fields, actions and validation are correctly set without extra code to set them on MultiForm
2008-07-21 03:21:51 +00:00
Sean Harvey
80e71b5ccf
BUGFIX SQL injection possibility fix on MultiForm->getSessionRecordByID()
2008-07-09 06:34:28 +00:00
Sean Harvey
f362ed07be
BUGFIX Disable security token inherited from Form. We do not require this as we tie a MultiForm instance to a MultiFormSession via a URL parameter
2008-07-04 01:07:33 +00:00
Sean Harvey
58b7bb2210
MINOR echo out the amount of session records that were deleted on MultiFormPurgeTask
2008-07-02 00:54:22 +00:00
Sean Harvey
9da9a611a0
BUGFIX Made MultiFormPurgeTask greatly simplified, and workable - it simply deletes all session data after days specified in $session_expiry_days
2008-07-02 00:39:40 +00:00
Sean Harvey
fce12220b2
ENHANCEMENT Allowed static $ignored_fields to be overloaded on subclass of MultiForm, so specific fields can be ignored
2008-07-01 23:57:07 +00:00
Sean Harvey
3b9f092ac1
BUGFIX We now call $nextStep->Link and $prevStep->Link() instead of $this->getCurrentStep()->Link() on MultiForm->next() and MultiForm->prev() which is confusing, and doesn't always work
2008-06-23 05:06:36 +00:00
Sean Harvey
0f2bfb2cc5
MINOR tests updated to reflect API change in r56597
2008-06-19 10:32:15 +00:00
Sean Harvey
295cd5077e
API CHANGE Ticket #2562 - Cleaner instanciation of MultiForm subclass, init() is removed with the move of session/step initialization to __construct()
2008-06-19 10:29:47 +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
fe8b3f57ef
Added some useful information to README
2008-06-09 02:49:06 +00:00
Sean Harvey
e4e43ee4af
ENHANCEMENT prev() now saves the current step data, exactly as next() does
2008-06-05 01:13:55 +00:00
Sean Harvey
4d0e9491cc
ENHANCEMENT Don't validate if hitting the "prev" action
2008-06-05 01:12:08 +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
2385c23d63
BUGFIX getCurrentStep should be called as a method, not a property
2008-05-26 04:06:09 +00:00
Sean Harvey
b0f45b505b
BUGFIX validator couldn't tie itself to a form correctly, encapsulated validator setup on MultiForm->setValidator()
2008-05-24 23:49:49 +00:00
Sean Harvey
2f4e8de921
Added tests, and used assertEquals which makes better use of PHPUnit
2008-05-23 05:47:07 +00:00
Sean Harvey
edcdbf8935
Fixed re-creating of a new Hash field even if one exists, also fixed non-object errors through better structured setSession() method
2008-05-14 11:30:35 +00:00
Sean Harvey
39229e19f4
Added note in _config.php for what this is for
2008-05-14 11:12:52 +00:00
Sean Harvey
e4f51e07c2
Added basics for testing, and some test classes for future test operations
2008-05-14 11:09:47 +00:00
Sean Harvey
54164a129f
Whitespace
2008-05-14 10:57:41 +00:00
Sean Harvey
6cfe0680c0
Added TODO items to fix later
2008-05-14 10:57:25 +00:00
Sean Harvey
927e974724
Added TODO about session being "baked" into MultiForm directly
2008-05-14 10:45:19 +00:00
Sean Harvey
8d93736482
Fall back to using the class name if there is no title property set
2008-05-14 10:40:19 +00:00
Sean Harvey
56325faf8f
added an accessor method for $this->session
2008-05-14 10:22:58 +00:00
Sean Harvey
f5f93fb10e
Added basic test to MultiForm
2008-05-14 07:18:12 +00:00
Sean Harvey
626c272b6f
Remove the relation as well as delete the object
2008-05-14 07:16:38 +00:00
Sean Harvey
652c0af4c2
Added parent::onBeforeDelete() - without this, it breaks!
2008-05-14 06:54:53 +00:00
Sean Harvey
ff9662f9f5
Revert last change
2008-04-30 03:47:33 +00:00
Sean Harvey
3872ca004c
Don't need to check if data exists first
2008-04-30 03:46:35 +00:00
Sean Harvey
75a4fb78d5
Added TODO
2008-04-29 09:50:06 +00:00
Sean Harvey
ac09ddfa86
Removed the disabling of SecurityID
2008-04-28 06:42:32 +00:00