Completed
Push — master ( 619774...d2780c )
by Daniel
03:51
created
code/model/MultiForm.php 1 patch
Doc Comments   +6 added lines, -5 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 	/**
86 86
 	 * Start the MultiForm instance.
87 87
 	 *
88
-	 * @param Controller instance $controller Controller this form is created on
88
+	 * @param Controller MultiFormTest_Controller $controller Controller this form is created on
89 89
 	 * @param string $name The form name, typically the same as the method name
90 90
 	 */
91 91
 	public function __construct($controller, $name) {
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
 	 * Set the step passed in as the current step.
205 205
 	 *
206 206
 	 * @param MultiFormStep $step A subclass of MultiFormStep
207
-	 * @return boolean The return value of write()
207
+	 * @return integer The return value of write()
208 208
 	 */
209 209
 	protected function setCurrentStep($step) {
210 210
 		$this->session->CurrentStepID = $step->ID;
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
 	 * to the database, use {@link getAllStepsLinear()}.
289 289
 	 *
290 290
 	 * @param String $filter SQL WHERE statement
291
-	 * @return DataObjectSet|boolean A set of MultiFormStep subclasses
291
+	 * @return DataList A set of MultiFormStep subclasses
292 292
 	 */
293 293
 	function getSavedSteps($filter = null) {
294 294
 		$filter .= ($filter) ? ' AND ' : '';
@@ -331,6 +331,7 @@  discard block
 block discarded – undo
331 331
 	 * have created in this method.
332 332
 	 *
333 333
 	 * @param $currentStep Subclass of MultiFormStep
334
+	 * @param MultiFormStep $step
334 335
 	 * @return FieldList of FormAction objects
335 336
 	 */
336 337
 	function actionsFor($step) {
@@ -369,7 +370,7 @@  discard block
 block discarded – undo
369 370
 	 * any of those don't exist, look for a default Form template to render
370 371
 	 * with instead.
371 372
 	 *
372
-	 * @return SSViewer object to render the template with
373
+	 * @return HTMLText object to render the template with
373 374
 	 */
374 375
 	function forTemplate() {
375 376
 		$return = $this->renderWith(array(
@@ -582,7 +583,7 @@  discard block
 block discarded – undo
582 583
 	 * session, its used - otherwise a singleton of this step is used.
583 584
 	 * Caution: Doesn't consider branching for steps which aren't in the database yet.
584 585
 	 *
585
-	 * @param $step Subclass of MultiFormStep to find the next step of
586
+	 * @param DataObject $step Subclass of MultiFormStep to find the next step of
586 587
 	 * @param $stepsFound $stepsFound DataObjectSet reference, the steps found to call back on
587 588
 	 * @return DataObjectSet of MultiFormStep instances
588 589
 	 */
Please login to merge, or discard this patch.
code/model/MultiFormStep.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 	 * Get a validator specific to this form.
103 103
 	 * The form is automatically validated in {@link Form->httpSubmission()}.
104 104
 	 *
105
-	 * @return Validator
105
+	 * @return boolean
106 106
 	 */
107 107
 	public function getValidator() {
108 108
 		return false;
@@ -316,6 +316,7 @@  discard block
 block discarded – undo
316 316
 	 * Sets the form that this step is directly related to.
317 317
 	 *
318 318
 	 * @param MultiForm subclass $form
319
+	 * @param MultiForm $form
319 320
 	 */
320 321
 	public function setForm($form) {
321 322
 		$this->form = $form;
Please login to merge, or discard this patch.