File: D:/HostingSpaces/SBogers85/equichecker.com/app/KommaApp/Kms/Core/Attributes/KmsTitle.php
<?php
/**
*
*
* @author Komma <info@komma.pro>
* @copyright (c) 2012-2016, Komma Mediadesign
*/
namespace KommaApp\Kms\Core\Attributes;
use View;
class KmsTitle extends KmsAttribute{
public $title;
function __construct($key, $value, array $options = [], array $errors = [], $siteId = null, $languageId = null, $section = null)
{
parent::__construct($key, $value, $options, $errors, $siteId, $languageId, $section);
$this->title = $this->getOption('title', $key);
}
public function render()
{
return View::make('kms/attributes.title', [
'attribute' => $this
]);
}
}