1 | <?php |
||
9 | class Users_EditAccountForm extends Form |
||
10 | { |
||
11 | |||
12 | /** |
||
13 | * These fields will be ignored by the `Users_EditAccountForm` |
||
14 | * when generating fields |
||
15 | * |
||
16 | * @var array |
||
17 | */ |
||
18 | private static $ignore_member_fields = array( |
||
19 | "LastVisited", |
||
20 | "FailedLoginCount", |
||
21 | "DateFormat", |
||
22 | "TimeFormat", |
||
23 | "VerificationCode", |
||
24 | "Password", |
||
25 | "HasConfiguredDashboard", |
||
26 | "URLSegment", |
||
27 | "BlogProfileSummary", |
||
28 | "BlogProfileImage" |
||
29 | ); |
||
30 | |||
31 | /** |
||
32 | * Setup this form |
||
33 | * |
||
34 | * @param Controller $controller Current Controller |
||
35 | * @param string $name Name of this form |
||
36 | * |
||
37 | * @return void |
||
|
|||
38 | */ |
||
39 | public function __construct($controller, $name = "Users_EditAccountForm") |
||
99 | |||
100 | /** |
||
101 | * Register a new member |
||
102 | * |
||
103 | * @param array $data User submitted data |
||
104 | * |
||
105 | * @return SS_HTTPResponse |
||
106 | */ |
||
107 | public function doUpdate($data) |
||
142 | } |
||
143 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.