PHP 클래스 Doctrine\OXM\Id\UuidGenerator

부터: 1.0
저자: Jonathan H. Wage ([email protected])
상속: extends AbstractIdGenerator
파일 보기 프로젝트 열기: doctrine/oxm

보호된 프로퍼티들

프로퍼티 타입 설명
$salt string A unique environment value to salt each GUID with.

공개 메소드들

메소드 설명
generate ( XmlEntityManager $xem, $xmlEntity ) : string Generates a new GUID
generateV4 ( ) : string Generates a v4 GUID
generateV5 ( string $namespace, string $salt ) : string Generates a v5 GUID
getSalt ( ) : string Returns the current salt value
isValid ( $guid ) : boolean Checks that a given string is a valid uuid.
setSalt ( string $salt ) Used to set the salt that will be applied to each id

메소드 상세

generate() 공개 메소드

Generates a new GUID
public generate ( XmlEntityManager $xem, $xmlEntity ) : string
$xem Doctrine\OXM\XmlEntityManager
리턴 string

generateV4() 공개 메소드

Generates a v4 GUID
public generateV4 ( ) : string
리턴 string

generateV5() 공개 메소드

Generates a v5 GUID
public generateV5 ( string $namespace, string $salt ) : string
$namespace string The GUID to seed with
$salt string The string to salt this new UUID with
리턴 string

getSalt() 공개 메소드

Returns the current salt value
public getSalt ( ) : string
리턴 string $salt The current salt

isValid() 공개 메소드

Checks that a given string is a valid uuid.
public isValid ( $guid ) : boolean
리턴 boolean

setSalt() 공개 메소드

Used to set the salt that will be applied to each id
public setSalt ( string $salt )
$salt string The sale to use

프로퍼티 상세

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

A unique environment value to salt each GUID with.
protected string $salt
리턴 string