CodeIgniter v4.7 API

URICast extends BaseCast
in package

(PHP) [URI --> string] --> (DB driver) --> (DB column) string [ <-- string] <-- (DB driver) <-- (DB column) string

Tags
extends

Table of Contents

Methods

get()  : TPhpNativeValue
Takes a value from a data source, returns its value for PHP.
set()  : TDataSourceValue
Takes a PHP value, returns its value for a data source.
invalidTypeValueError()  : never

Methods

get()

Takes a value from a data source, returns its value for PHP.

public static get(mixed $value[, array<string|int, mixed> $params = [] ][, object|null $helper = null ]) : TPhpNativeValue
Parameters
$value : mixed

Data from database driver

$params : array<string|int, mixed> = []

Additional param

$helper : object|null = null

Helper object. E.g., database connection

Return values
TPhpNativeValue

set()

Takes a PHP value, returns its value for a data source.

public static set(mixed $value[, array<string|int, mixed> $params = [] ][, object|null $helper = null ]) : TDataSourceValue
Parameters
$value : mixed

PHP native value

$params : array<string|int, mixed> = []

Additional param

$helper : object|null = null

Helper object. E.g., database connection

Return values
TDataSourceValue

invalidTypeValueError()

protected static invalidTypeValueError(mixed $value) : never
Parameters
$value : mixed
Return values
never
On this page

Search results