PHP 클래스 App\Services\Repositories\OptionRepository

상속: extends Repository
파일 보기 프로젝트 열기: printempw/blessing-skin-server 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( ) : void Create a new option repository.
__destruct ( ) Save all modified options into database
get ( string $key, mixed $default = null, boolean $bool = true ) : mixed Get the specified option value.
only ( array $array ) : array Return the options with key in the given array.
prepend ( string $key, mixed $value ) : void Prepend a value onto an array option value.
save ( ) : void Do really save modified options to database.

메소드 상세

__construct() 공개 메소드

Create a new option repository.
public __construct ( ) : void
리턴 void

__destruct() 공개 메소드

Save all modified options into database
public __destruct ( )

get() 공개 메소드

Get the specified option value.
public get ( string $key, mixed $default = null, boolean $bool = true ) : mixed
$key string
$default mixed
$bool boolean convert '0', '1' to bool value
리턴 mixed

only() 공개 메소드

Return the options with key in the given array.
public only ( array $array ) : array
$array array
리턴 array

prepend() 공개 메소드

Prepend a value onto an array option value.
public prepend ( string $key, mixed $value ) : void
$key string
$value mixed
리턴 void

save() 공개 메소드

Do really save modified options to database.
public save ( ) : void
리턴 void