File: D:/HostingSpaces/SBogers10/lmbm.komma.pro/app/KommaApp/Kms/Core/Attributes/KmsEditableRows.php
<?php
/**
*
*
* @author Komma <info@komma.pro>
* @copyright (c) 2012-2016, Komma
*/
namespace App\KommaApp\Kms\Core\Attributes;
use View;
class KmsEditableRows extends KmsAttribute{
public $label;
protected $structure = [];
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->template = $this->getOption('template', $key);
$this->structure = $this->getOption('structure', []);
}
public function render()
{
return View::make('kms/attributes.editableRows', [
'attribute' => $this
]);
}
public function getStructure()
{
return $this->structure;
}
}