PATH:
home
/
lab2454c
/
vaultchip.com
/
vendor
/
kris
/
laravel-form-builder
/
src
/
Kris
/
LaravelFormBuilder
/
Fields
<?php namespace Kris\LaravelFormBuilder\Fields; class CheckableType extends FormField { const DEFAULT_VALUE = 1; /** * @inheritdoc */ protected $valueProperty = 'checked'; /** * @inheritdoc */ protected function getTemplate() { return $this->type; } /** * @inheritdoc */ public function getDefaults() { return [ 'attr' => ['class' => null, 'id' => $this->getName()], 'value' => self::DEFAULT_VALUE, 'checked' => null ]; } /** * {@inheritdoc} */ protected function isValidValue($value) { return $value !== null; } }
[+]
..
[-] TextareaType.php
[edit]
[-] StaticType.php
[edit]
[-] EntityType.php
[edit]
[-] ButtonType.php
[edit]
[-] SelectType.php
[edit]
[-] FormField.php
[edit]
[-] RepeatedType.php
[edit]
[-] CollectionType.php
[edit]
[-] ButtonGroupType.php
[edit]
[-] ChoiceType.php
[edit]
[-] ChildFormType.php
[edit]
[-] ParentType.php
[edit]
[-] CheckableType.php
[edit]
[-] InputType.php
[edit]