Total Complexity | 2 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | class KnockoutFormAction extends \SilverStripe\Forms\FormAction |
||
13 | { |
||
14 | |||
15 | use \AntonyThorpe\Knockout\Common; |
||
16 | |||
17 | /** |
||
18 | * $disabledClass |
||
19 | * |
||
20 | * @var string a disabledClass |
||
21 | */ |
||
22 | protected $disabledClass = "FormAction_Disabled"; |
||
23 | |||
24 | /** |
||
25 | * casting of variables for security purposes |
||
26 | * |
||
27 | * @see http://docs.silverstripe.org/en/3.1/developer_guides/security/secure_coding/ |
||
28 | */ |
||
29 | protected $casting = array( |
||
30 | "DisabledClass" => "Varchar", |
||
31 | "Observable" => "Varchar", |
||
32 | "BindingType" => "Varchar", |
||
33 | "OtherBindings" => "Varchar", |
||
34 | "HasFocus" => "Boolean" |
||
35 | ); |
||
36 | |||
37 | /** |
||
38 | * setDisabledClass |
||
39 | * |
||
40 | * @param string $input The CSS class appied to the element upon a falsy observable result |
||
41 | * @return $this |
||
42 | */ |
||
43 | public function setDisabledClass($input) |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * getDisabledClass |
||
51 | * |
||
52 | * @return boolean |
||
53 | */ |
||
54 | public function getDisabledClass() |
||
59 |