marc-leopold/cms/plugins/rainlab/builder/models/Settings.php

30 lines
621 B
PHP
Raw Normal View History

2019-02-25 14:56:59 +00:00
<?php namespace RainLab\Builder\Models;
use October\Rain\Database\Model;
/**
* Builder settings model
*
* @package rainlab\builder
* @author Alexey Bobkov, Samuel Georges
*
*/
class Settings extends Model
{
use \October\Rain\Database\Traits\Validation;
public $implement = ['System.Behaviors.SettingsModel'];
public $settingsCode = 'rainlab_builder_settings';
public $settingsFields = 'fields.yaml';
/**
* Validation rules
*/
public $rules = [
'author_name' => 'required',
'author_namespace' => ['required', 'regex:/^[a-z]+[a-z0-9]+$/i', 'reserved']
];
}