File: D:/HostingSpaces/SBogers60/agrimac.nl/workbench/komma/kms/src/Komma/Kms/Core/Attributes/KmsText.php
<?php
/**
* Short description for the file.
*
* @author Komma <info@komma.pro>
* @copyright (c) 2012-2015, Komma Mediadesign
*/
namespace Komma\Kms\Core\Attributes;
use View;
class KmsText extends KmsAttribute{
public $label;
public $template;
function __construct($key, $value, array $options = [], array $errors = [], $languageId = null, $section = null)
{
parent::__construct($key, $value, $options, $errors, $languageId, $section);
$this->label = $this->getOption('label', $key);
$this->template = $this->getOption('template', $key);
}
public function render()
{
return View::make('kms::attributes.text', [
'attribute' => $this
]);
}
}