PHP 클래스 Doctrine\ODM\CouchDB\Types\Type

파일 보기 프로젝트 열기: doctrine/couchdb-odm 1 사용 예제들

공개 메소드들

메소드 설명
__toString ( )
addType ( string $name, string $className ) Adds a custom type to the type map.
convertToCouchDBValue ( mixed $value ) : mixed
convertToPHPValue ( mixed $value ) : mixed
getType ( string $name ) : Type Factory method to create type instances.
getTypesMap ( ) : array Get the types array map which holds all registered types and the corresponding type class
hasType ( string $name ) : boolean Checks if exists support for a type.
overrideType ( string $name, string $className ) Overrides an already defined type to use a different implementation.

보호된 메소드들

메소드 설명
__construct ( )

메소드 상세

__construct() 보호된 메소드

protected __construct ( )

__toString() 공개 메소드

public __toString ( )

addType() 공개 정적인 메소드

Adds a custom type to the type map.
public static addType ( string $name, string $className )
$name string Name of the type. This should correspond to what getName() returns.
$className string The class name of the custom type.

convertToCouchDBValue() 추상적인 공개 메소드

abstract public convertToCouchDBValue ( mixed $value ) : mixed
$value mixed
리턴 mixed

convertToPHPValue() 추상적인 공개 메소드

abstract public convertToPHPValue ( mixed $value ) : mixed
$value mixed
리턴 mixed

getType() 공개 정적인 메소드

Type instances are implemented as flyweights.
public static getType ( string $name ) : Type
$name string The name of the type (as returned by getName()).
리턴 Type

getTypesMap() 공개 정적인 메소드

Get the types array map which holds all registered types and the corresponding type class
public static getTypesMap ( ) : array
리턴 array $typesMap

hasType() 공개 정적인 메소드

Checks if exists support for a type.
public static hasType ( string $name ) : boolean
$name string Name of the type
리턴 boolean TRUE if type is supported; FALSE otherwise

overrideType() 공개 정적인 메소드

Overrides an already defined type to use a different implementation.
public static overrideType ( string $name, string $className )
$name string
$className string