PHP 클래스 JSONStore, gitblog

With the restriction that the JSON object in the database must be an array (vector or map) since this interface is built upon key-value pairs. Keys must be strings, integers or floats. Values can be of any type.
상속: extends FileDB, implements ArrayAccess, implements Countable
파일 보기 프로젝트 열기: rsms/gitblog 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$autocommit
$pretty_output

보호된 프로퍼티들

프로퍼티 타입 설명
$originalData For keeping track of modifications done or not

공개 메소드들

메소드 설명
__construct ( $file = '/dev/null', $skeleton_file = null, $createmode = 432, $autocommit = true, $pretty_output = true )
__toString ( )
count ( )
encodeData ( )
get ( $key = null, $default = null )
loadString ( $s )
offsetExists ( $k )
offsetGet ( $k )
offsetSet ( $k, $v )
offsetUnset ( $k )
parseData ( )
set ( $key, $value = null )
throwJSONError ( $errno = false, $compatmsg = 'JSON error' )

보호된 메소드들

메소드 설명
txReadData ( )
txWriteData ( )

메소드 상세

__construct() 공개 메소드

public __construct ( $file = '/dev/null', $skeleton_file = null, $createmode = 432, $autocommit = true, $pretty_output = true )

__toString() 공개 메소드

public __toString ( )

count() 공개 메소드

public count ( )

encodeData() 공개 메소드

public encodeData ( )

get() 공개 메소드

public get ( $key = null, $default = null )

loadString() 공개 메소드

public loadString ( $s )

offsetExists() 공개 메소드

public offsetExists ( $k )

offsetGet() 공개 메소드

public offsetGet ( $k )

offsetSet() 공개 메소드

public offsetSet ( $k, $v )

offsetUnset() 공개 메소드

public offsetUnset ( $k )

parseData() 공개 메소드

public parseData ( )

set() 공개 메소드

public set ( $key, $value = null )

throwJSONError() 공개 메소드

public throwJSONError ( $errno = false, $compatmsg = 'JSON error' )

txReadData() 보호된 메소드

protected txReadData ( )

txWriteData() 보호된 메소드

protected txWriteData ( )

프로퍼티 상세

$autocommit 공개적으로 프로퍼티

public $autocommit

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

For keeping track of modifications done or not
protected $originalData

$pretty_output 공개적으로 프로퍼티

public $pretty_output