PHP 클래스 Webmozart\KeyValueStore\ArrayStore

The contents of the store are lost when the store is released from memory.
부터: 1.0
저자: Bernhard Schussek ([email protected])
상속: implements Webmozart\KeyValueStore\Api\SortableStore, implements Webmozart\KeyValueStore\Api\CountableStore
파일 보기 프로젝트 열기: webmozart/key-value-store

공개 메소드들

메소드 설명
__construct ( array $array = [], $flags ) Creates a new store.
clear ( )
count ( )
exists ( $key )
get ( $key, $default = null )
getMultiple ( array $keys, $default = null )
getMultipleOrFail ( array $keys )
getOrFail ( $key )
keys ( )
remove ( $key )
set ( $key, $value )
sort ( $flags = SORT_REGULAR )
toArray ( ) : array Returns the contents of the store as array.

메소드 상세

__construct() 공개 메소드

Creates a new store.
public __construct ( array $array = [], $flags )
$array array The values to set initially in the store.

clear() 공개 메소드

public clear ( )

count() 공개 메소드

public count ( )

exists() 공개 메소드

public exists ( $key )

get() 공개 메소드

public get ( $key, $default = null )

getMultiple() 공개 메소드

public getMultiple ( array $keys, $default = null )
$keys array

getMultipleOrFail() 공개 메소드

public getMultipleOrFail ( array $keys )
$keys array

getOrFail() 공개 메소드

public getOrFail ( $key )

keys() 공개 메소드

public keys ( )

remove() 공개 메소드

public remove ( $key )

set() 공개 메소드

public set ( $key, $value )

sort() 공개 메소드

public sort ( $flags = SORT_REGULAR )

toArray() 공개 메소드

Returns the contents of the store as array.
public toArray ( ) : array
리턴 array The keys and values in the store.