CodeIgniter v4.5 API

CastInterface

Table of Contents

Methods

get()  : mixed
Takes a value from DataSource, returns its value for PHP.
set()  : mixed
Takes a PHP value, returns its value for DataSource.

Methods

get()

Takes a value from DataSource, returns its value for PHP.

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

Data from database driver

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

Additional param

$helper : object|null = null

Helper object. E.g., database connection

Return values
mixed

PHP native value

set()

Takes a PHP value, returns its value for DataSource.

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

PHP native value

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

Additional param

$helper : object|null = null

Helper object. E.g., database connection

Return values
mixed

Data to pass to database driver


        
On this page

Search results