1 | <?php |
||
10 | class KnockoutForm extends Form { |
||
11 | |||
12 | /** |
||
13 | * $submit |
||
14 | * |
||
15 | * @var string the javascript function to run upon a click/enter event |
||
16 | */ |
||
17 | protected $submit; |
||
18 | |||
19 | /** |
||
20 | * casting of variables for security purposes |
||
21 | * |
||
22 | * Reference: http://docs.silverstripe.org/en/3.1/developer_guides/security/secure_coding/ |
||
23 | */ |
||
24 | protected $casting = array( |
||
25 | "Submit" => "Varchar" |
||
26 | ); |
||
27 | |||
28 | /** |
||
29 | * setSubmit |
||
30 | * |
||
31 | * @return $this |
||
32 | */ |
||
33 | public function setSubmit($input) { |
||
37 | |||
38 | /** |
||
39 | * getSubmit |
||
40 | * |
||
41 | * @return boolean |
||
42 | */ |
||
43 | public function getSubmit() { |
||
46 | |||
47 | |||
48 | } |
||
49 |