PHP Class Doctrine\ODM\CouchDB\Types\Type

Afficher le fichier Open project: doctrine/couchdb-odm Class Usage Examples

Méthodes publiques

Méthode Description
__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.

Méthodes protégées

Méthode Description
__construct ( )

Method Details

__construct() protected méthode

protected __construct ( )

__toString() public méthode

public __toString ( )

addType() public static méthode

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 méthode

abstract public convertToCouchDBValue ( mixed $value ) : mixed
$value mixed
Résultat mixed

convertToPHPValue() abstract public méthode

abstract public convertToPHPValue ( mixed $value ) : mixed
$value mixed
Résultat mixed

getType() public static méthode

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

getTypesMap() public static méthode

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

hasType() public static méthode

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

overrideType() public static méthode

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