PHP Class Opsway\Doctrine\DBAL\Types\TsVector

https://gist.github.com/3129096
Author: Richard Fullmer ([email protected])
Inheritance: extends Doctrine\DBAL\Types\Type
Mostra file Open project: opsway/doctrine-dbal-postgresql

Public Methods

Method Description
canRequireSQLConversion ( )
convertToDatabaseValue ( mixed $value, Doctrine\DBAL\Platforms\AbstractPlatform $platform ) : mixed Converts a value from its PHP representation to its database representation of this type.
convertToDatabaseValueSQL ( string $sqlExpr, Doctrine\DBAL\Platforms\AbstractPlatform $platform ) : string Modifies the SQL expression (identifier, parameter) to convert to a database value.
convertToPHPValue ( mixed $value, Doctrine\DBAL\Platforms\AbstractPlatform $platform ) : mixed Converts a value from its database representation to its PHP representation of this type.
convertToPHPValueSQL ( string $value, Doctrine\DBAL\Platforms\AbstractPlatform $platform ) : string Modifies the SQL expression (identifier, parameter) to convert to a PHP value.
getName ( )
getSQLDeclaration ( array $fieldDeclaration, Doctrine\DBAL\Platforms\AbstractPlatform $platform )

Method Details

canRequireSQLConversion() public method

convertToDatabaseValue() public method

Converts a value from its PHP representation to its database representation of this type.
public convertToDatabaseValue ( mixed $value, Doctrine\DBAL\Platforms\AbstractPlatform $platform ) : mixed
$value mixed The value to convert.
$platform Doctrine\DBAL\Platforms\AbstractPlatform The currently used database platform.
return mixed The database representation of the value.

convertToDatabaseValueSQL() public method

Modifies the SQL expression (identifier, parameter) to convert to a database value.
public convertToDatabaseValueSQL ( string $sqlExpr, Doctrine\DBAL\Platforms\AbstractPlatform $platform ) : string
$sqlExpr string
$platform Doctrine\DBAL\Platforms\AbstractPlatform
return string

convertToPHPValue() public method

Converts a value from its database representation to its PHP representation of this type.
public convertToPHPValue ( mixed $value, Doctrine\DBAL\Platforms\AbstractPlatform $platform ) : mixed
$value mixed The value to convert.
$platform Doctrine\DBAL\Platforms\AbstractPlatform The currently used database platform.
return mixed The PHP representation of the value.

convertToPHPValueSQL() public method

Modifies the SQL expression (identifier, parameter) to convert to a PHP value.
public convertToPHPValueSQL ( string $value, Doctrine\DBAL\Platforms\AbstractPlatform $platform ) : string
$value string
$platform Doctrine\DBAL\Platforms\AbstractPlatform
return string

getName() public method

public getName ( )

getSQLDeclaration() public method

public getSQLDeclaration ( array $fieldDeclaration, Doctrine\DBAL\Platforms\AbstractPlatform $platform )
$fieldDeclaration array
$platform Doctrine\DBAL\Platforms\AbstractPlatform