PHP Класс Doctrine\ODM\CouchDB\Types\Type

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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