PHP 클래스 ThemeSetting, Doptor

상속: extends Eloquent, implements Robbo\Presenter\PresentableInterface
파일 보기 프로젝트 열기: doptor/doptor 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$rules

보호된 프로퍼티들

프로퍼티 타입 설명
$fillable
$guarded
$images_path Path in the public folder to upload image and its corresponding thumbnail
$table
$thumbs_path

공개 메소드들

메소드 설명
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.

메소드 상세

create() 공개 정적인 메소드

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

getPresenter() 공개 메소드

Initiate the presenter class
public getPresenter ( )

getSetting() 공개 정적인 메소드

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

getValueAttribute() 공개 메소드

public getValueAttribute ( $value )

isJson() 공개 메소드

public isJson ( $string )

saveSetting() 공개 정적인 메소드

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

setValueAttribute() 공개 메소드

public setValueAttribute ( $value )

update() 공개 메소드

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

프로퍼티 상세

$fillable 보호되어 있는 프로퍼티

protected $fillable

$guarded 보호되어 있는 프로퍼티

protected $guarded

$images_path 보호되어 있는 프로퍼티

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

$rules 공개적으로 정적으로 프로퍼티

public static $rules

$table 보호되어 있는 프로퍼티

protected $table

$thumbs_path 보호되어 있는 프로퍼티

protected $thumbs_path