PHP Class ThemeSetting, Doptor

Inheritance: extends Eloquent, implements Robbo\Presenter\PresentableInterface
显示文件 Open project: doptor/doptor Class Usage Examples

Public Properties

Property Type Description
$rules

Protected Properties

Property Type Description
$fillable
$guarded
$images_path Path in the public folder to upload image and its corresponding thumbnail
$table
$thumbs_path

Public Methods

Method Description
create ( array $attributes = [] ) : void When creating a theme, run the attributes through a validator first.
getPresenter ( ) Initiate the presenter class
getSetting ( string $name, string $default, $theme_id ) : string Get the value of setting for the specified name
getValueAttribute ( $value )
isJson ( $string )
saveSetting ( $name, $value, $public_theme_id )
setValueAttribute ( $value )
update ( array $attributes = [], array $options = [] ) : void When updating a theme, run the attributes through a validator first.

Method Details

create() public static method

When creating a theme, run the attributes through a validator first.
public static create ( array $attributes = [] ) : void
$attributes array
return void

getPresenter() public method

Initiate the presenter class
public getPresenter ( )

getSetting() public static method

Get the value of setting for the specified name
public static getSetting ( string $name, string $default, $theme_id ) : string
$name string
$default string
return string

getValueAttribute() public method

public getValueAttribute ( $value )

isJson() public method

public isJson ( $string )

saveSetting() public static method

public static saveSetting ( $name, $value, $public_theme_id )

setValueAttribute() public method

public setValueAttribute ( $value )

update() public method

When updating a theme, run the attributes through a validator first.
public update ( array $attributes = [], array $options = [] ) : void
$attributes array
$options array
return void

Property Details

$fillable protected_oe property

protected $fillable

$guarded protected_oe property

protected $guarded

$images_path protected_oe property

Path in the public folder to upload image and its corresponding thumbnail
protected $images_path

$rules public_oe static_oe property

public static $rules

$table protected_oe property

protected $table

$thumbs_path protected_oe property

protected $thumbs_path