PHP 클래스 app\models\Setting

상속: extends yii\db\ActiveRecord
파일 보기 프로젝트 열기: phanan/koel 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$timestamps

보호된 프로퍼티들

프로퍼티 타입 설명
$guarded
$primaryKey

공개 메소드들

메소드 설명
get ( string $key ) : mixed Get a setting value.
getValueAttribute ( $value )
set ( string | array $key, mixed $value = null ) Set a setting (no pun) value.
setValueAttribute ( mixed $value ) Serialize the setting value before saving into the database.

메소드 상세

get() 공개 정적인 메소드

Get a setting value.
public static get ( string $key ) : mixed
$key string
리턴 mixed

getValueAttribute() 공개 메소드

public getValueAttribute ( $value )

set() 공개 정적인 메소드

Set a setting (no pun) value.
public static set ( string | array $key, mixed $value = null )
$key string | array The key of the setting, or an associative array of settings, in which case $value will be discarded.
$value mixed

setValueAttribute() 공개 메소드

This makes settings more flexible.
public setValueAttribute ( mixed $value )
$value mixed

프로퍼티 상세

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

protected $guarded

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

protected $primaryKey

$timestamps 공개적으로 프로퍼티

public $timestamps