File: D:/HostingSpaces/SBogers10/medvalue.komma.pro/app/KommaApp/Kms/Core/Attributes/KmsTextField.php
<?php
/**
*
*
* @author Komma <info@komma.pro>
* @copyright (c) 2012-2016, Komma
*/
namespace App\KommaApp\Kms\Core\Attributes;
use View;
/**
* Class KmsTextField
* @package App\KommaApp\Kms\Core\Attributes
*
* @deprecated Do not use this anymore. Use TextField class instead
*/
class KmsTextField extends KmsAttribute{
public $label;
public $placeholder;
function __construct($key, $value, array $options = [], array $errors = [], $siteId = null, $languageId = null, $section = null)
{
parent::__construct($key, $value, $options, $errors, $siteId, $languageId, $section);
$this->label = $this->getOption('label', $key);
$this->placeholder = $this->getOption('placeholder', $key);
$this->getValue();
}
public function getValue($post = false)
{
if($this->getOption('lowercase', false)) return strtolower($this->value);
return $this->value;
}
public function render()
{
return View::make('kms/attributes.textField', [
'attribute' => $this
]);
}
}