PHP 클래스 MongoBinData

파일 보기 프로젝트 열기: alcaeus/mongo-php-adapter 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$bin
$type

공개 메소드들

메소드 설명
__construct ( string $data, integer $type = 2 ) Creates a new binary data object.
__toString ( ) : string Returns the string "". To access the contents of a MongoBinData, use the bin field.
toBSONType ( ) : MongoDB\BSON\Binary Converts this MongoBinData to the new BSON Binary type

메소드 상세

__construct() 공개 메소드

Creates a new binary data object.
public __construct ( string $data, integer $type = 2 )
$data string Binary data
$type integer Data type

__toString() 공개 메소드

Returns the string "". To access the contents of a MongoBinData, use the bin field.
public __toString ( ) : string
리턴 string

toBSONType() 공개 메소드

Converts this MongoBinData to the new BSON Binary type
public toBSONType ( ) : MongoDB\BSON\Binary
리턴 MongoDB\BSON\Binary

프로퍼티 상세

$bin 공개적으로 프로퍼티

public $bin

$type 공개적으로 프로퍼티

public $type