Source of file UserFormsStepField.php
Size: 0,910 Bytes - Last Modified: 2021-12-23T10:35:40+00:00
/var/www/docs.ssmods.com/process/src/code/FormField/UserFormsStepField.php
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 | <?php namespace SilverStripe\UserForms\FormField; /** * Represents a page step in a form, which may contain form fields or other groups */ class UserFormsStepField extends UserFormsCompositeField { private static $casting = [ 'StepNumber' => 'Int' ]; /** * Numeric index (1 based) of this step * * Null if unassigned * * @var int|null */ protected $number = null; public function FieldHolder($properties = []) { return $this->Field($properties); } /** * Get the step number * * @return int|null */ public function getStepNumber() { return $this->number; } /** * Re-assign this step to another number * * @param type $number * @return $this */ public function setStepNumber($number) { $this->number = $number; return $this; } } |