PHP 클래스 Habari\UUID

파일 보기 프로젝트 열기: habari/system

공개 메소드들

메소드 설명
__construct ( integer $version = 4 ) Create a UUID (Universally Unique IDentifier) as per RfC 4122.
__toString ( ) : a
get ( ) : the Create a UUID and return its canonical hexadecimal representation.
get_array ( ) : the
get_hex ( ) : the
get_raw ( ) : the

메소드 상세

__construct() 공개 메소드

Currently, only version 4 UUIDs are supported (Section 4.4, "Algorithms for Creating a UUID from Truly Random or Pseudo-Random Numbers").
public __construct ( integer $version = 4 )
$version integer UUID version to generate (currently, only version 4 is supported)

__toString() 공개 메소드

public __toString ( ) : a
리턴 a string representation of this object.

get() 공개 정적인 메소드

Create a UUID and return its canonical hexadecimal representation.
public static get ( ) : the
리턴 the canonical hexadecimal representation of the generated UUID

get_array() 공개 메소드

public get_array ( ) : the
리턴 the generated UUID as an array of bytes

get_hex() 공개 메소드

public get_hex ( ) : the
리턴 the canonical hexadecimal representation of the generated UUID

get_raw() 공개 메소드

public get_raw ( ) : the
리턴 the generated UUID as a string of bytes