File: D:/HostingSpaces/Lacom/lacom.nl/app/KommaApp/Kms/Core/Attributes/KmsSlug.php
<?php
/**
*
*
* @author Komma <info@komma.pro>
* @copyright (c) 2012-2016, Komma
*/
namespace App\KommaApp\Kms\Core\Attributes;
use View;
class KmsSlug extends KmsAttribute{
public $label;
public $placeholder;
public $slugField;
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);
/**
* Info: When using this in a fieldGroup,
* use [[itemCounter]] for the x th item in the fieldGroup
*/
$this->slugField = $this->getOption('slugField', null);
}
public function render()
{
return View::make('kms/attributes.slug', [
'attribute' => $this
]);
}
}