PHP 클래스 PhpOrient\Protocols\Binary\Serialization\CSV

파일 보기 프로젝트 열기: ostico/phporient 1 사용 예제들

공개 메소드들

메소드 설명
serialize ( mixed $value, boolean $embedded = false ) : string Serialize a value.
unserialize ( string $input ) : array | null Deserialize a record.

보호된 메소드들

메소드 설명
eatArray ( string $input ) : array Consume an array of values.
eatBag ( string $input ) : array Consume a record id bag.
eatBinary ( string $input ) : array Consume a binary field.
eatFirstKey ( string $input ) : array Consume the first field key, which could be a class name.
eatKey ( string $input ) : array Consume a field key, which may or may not be quoted.
eatMap ( string $input ) : array Consume a map of keys to values.
eatNumber ( string $input ) : array Consume a number.
eatRID ( string $input ) : array Consume a Record ID.
eatRecord ( string $input ) : array Consume an embedded record.
eatSet ( string $input ) : array Consume a set of values.
eatString ( string $input ) : array Consume a string.
eatValue ( string $input ) : array Consume a field value.
serializeArray ( array $array ) : string Serialize an array of values.
serializeDocument ( PhpOrient\Protocols\Binary\Abstracts\SerializableInterface $document, $embedded = false )

메소드 상세

eatArray() 보호된 정적인 메소드

Consume an array of values.
protected static eatArray ( string $input ) : array
$input string The input to consume
리턴 array The collected array and any remaining content.

eatBag() 보호된 정적인 메소드

Consume a record id bag.
protected static eatBag ( string $input ) : array
$input string The input to consume
리턴 array The collected record id bag and any remaining content.

eatBinary() 보호된 정적인 메소드

Consume a binary field.
protected static eatBinary ( string $input ) : array
$input string The input to consume
리턴 array The collected binary and any remaining content.

eatFirstKey() 보호된 정적인 메소드

Consume the first field key, which could be a class name.
protected static eatFirstKey ( string $input ) : array
$input string The input to consume
리턴 array The collected string and any remaining content, followed by a boolean indicating whether this is a class name.

eatKey() 보호된 정적인 메소드

Consume a field key, which may or may not be quoted.
protected static eatKey ( string $input ) : array
$input string The input to consume
리턴 array The collected string and any remaining content.

eatMap() 보호된 정적인 메소드

Consume a map of keys to values.
protected static eatMap ( string $input ) : array
$input string The input to consume
리턴 array The collected map and any remaining content.

eatNumber() 보호된 정적인 메소드

If the number has a suffix, consume it also and instantiate the right type, e.g. for dates
protected static eatNumber ( string $input ) : array
$input string The input to consume
리턴 array The collected number and any remaining content.

eatRID() 보호된 정적인 메소드

Consume a Record ID.
protected static eatRID ( string $input ) : array
$input string The input to consume
리턴 array The collected RID and any remaining content.

eatRecord() 보호된 정적인 메소드

Consume an embedded record.
protected static eatRecord ( string $input ) : array
$input string The input to unserialize.
리턴 array The collected record and any remaining content.

eatSet() 보호된 정적인 메소드

Consume a set of values.
protected static eatSet ( string $input ) : array
$input string The input to consume
리턴 array The collected set and any remaining content.

eatString() 보호된 정적인 메소드

Consume a string.
protected static eatString ( string $input ) : array
$input string The input to consume
리턴 array The collected string and any remaining content.

eatValue() 보호된 정적인 메소드

Consume a field value.
protected static eatValue ( string $input ) : array
$input string The input to consume
리턴 array The collected value and any remaining content.

serialize() 공개 정적인 메소드

Serialize a value.
public static serialize ( mixed $value, boolean $embedded = false ) : string
$value mixed The value to serialize.
$embedded boolean Whether this is a value embedded in another.
리턴 string The serialized value.

serializeArray() 보호된 정적인 메소드

If the array is associative a map will be returned, otherwise a plain array.
protected static serializeArray ( array $array ) : string
$array array the array to serialize
리턴 string the serialized array or map.

serializeDocument() 보호된 정적인 메소드

protected static serializeDocument ( PhpOrient\Protocols\Binary\Abstracts\SerializableInterface $document, $embedded = false )
$document PhpOrient\Protocols\Binary\Abstracts\SerializableInterface

unserialize() 공개 정적인 메소드

Deserialize a record.
public static unserialize ( string $input ) : array | null
$input string The input to un-serialize.
리턴 array | null The un-serialized document, or null if the input is empty.