Fr3nch13/CakePHP Utilities

BaseType
in package
implements TypeInterface

AbstractYes

Base type class.

Table of Contents

Interfaces

TypeInterface
Encapsulates all conversion functions for values coming from a database into PHP and going from PHP into a database.

Properties

$_name  : string|null
Identifier name for this type

Methods

__construct()  : mixed
Constructor
getBaseType()  : string|null
Returns the base type name that this class is inheriting.
getName()  : string|null
Returns type identifier name for this object.
newId()  : mixed
Generate a new primary key value for a given type.
toStatement()  : mixed
Casts given value to its Statement equivalent.

Properties

$_name

Identifier name for this type

protected string|null $_name

Methods

__construct()

Constructor

public __construct([string|null $name = null ]) : mixed
Parameters
$name : string|null = null

The name identifying this type

getBaseType()

Returns the base type name that this class is inheriting.

public getBaseType() : string|null
Tags
inheritDoc
Return values
string|null

The base type name that this class is inheriting.

getName()

Returns type identifier name for this object.

public getName() : string|null
Tags
inheritDoc
Return values
string|null

The type identifier name for this object.

newId()

Generate a new primary key value for a given type.

public newId() : mixed
Tags
inheritDoc
Return values
mixed

A new primary key value.

toStatement()

Casts given value to its Statement equivalent.

public toStatement(mixed $value, DriverInterface $driver) : mixed
Parameters
$value : mixed

Value to be converted to PDO statement.

$driver : DriverInterface

Object from which database preferences and configuration will be extracted.

Tags
inheritDoc
Return values
mixed

Given value casted to its Statement equivalent.


        
On this page

Search results