aboutsummaryrefslogtreecommitdiffhomepage
path: root/main/app/sprinkles/FormGenerator/src/Element/Checkbox.php
diff options
context:
space:
mode:
authorMarvin Borner2018-05-24 00:31:19 +0200
committerMarvin Borner2018-05-24 00:31:19 +0200
commit85211481260c076ad5e2889b66465495c33429ef (patch)
treeb33c63888f81ff878c514c7c544e3afcf4cfbfd1 /main/app/sprinkles/FormGenerator/src/Element/Checkbox.php
parentb66a61addb6c8e66cb26fcf74b532d68891267e4 (diff)
Many fixes, began user feed generator
Diffstat (limited to 'main/app/sprinkles/FormGenerator/src/Element/Checkbox.php')
-rw-r--r--main/app/sprinkles/FormGenerator/src/Element/Checkbox.php39
1 files changed, 0 insertions, 39 deletions
diff --git a/main/app/sprinkles/FormGenerator/src/Element/Checkbox.php b/main/app/sprinkles/FormGenerator/src/Element/Checkbox.php
deleted file mode 100644
index 97bfdba..0000000
--- a/main/app/sprinkles/FormGenerator/src/Element/Checkbox.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-/**
- * UF Form Generator
- *
- * @link https://github.com/lcharette/UF_FormGenerator
- * @copyright Copyright (c) 2017 Louis Charette
- * @license https://github.com/lcharette/UF_FormGenerator/blob/master/LICENSE (MIT License)
- */
-
-namespace UserFrosting\Sprinkle\FormGenerator\Element;
-
-use UserFrosting\Sprinkle\FormGenerator\Element\BaseInput;
-
-/**
- * Checkbox input type class.
- * Manage the default attributes required to display a checkbox input
- *
- * @extends BaseInput
- */
-class Checkbox extends BaseInput
-{
-
- /**
- * {@inheritDoc}
- */
- protected function applyTransformations() {
- $this->element = array_merge([
- "class" => "js-icheck",
- "name" => $this->name,
- "id" => "field_" . $this->name,
- "binary" => TRUE
- ], $this->element);
-
- // We add the check status instead of the value
- if ($this->element["binary"] !== FALSE && $this->getValue() == 1) {
- $this->element["checked"] = "checked";
- }
- }
-}