FetchHandler
extends Module
in package
Table of Contents
- $collection : mixed
- __construct() : mixed
- getCollection() : mixed
- parseBinds() : array<string|int, mixed>
- Parse single colon binds, ignoring double colon binds
- propertyReplacement() : string
- Convert Gryphon properties to CEO properties so existing fetch statements continue to work
- transformBinds() : array<string|int, mixed>
- Convert fetch where and bind parameters from Gryphon/Foundry bind style (e.g. `foo = :foo` [':foo' => $bar]]`) to CEO/Phalcon bind style, (e.g. `foo = :foo:` ['foo' => $bar]]`)
Properties
$collection
protected
mixed
$collection
Methods
__construct()
public
__construct(mixed $modelString, mixed $def) : mixed
Parameters
- $modelString : mixed
- $def : mixed
Return values
mixed —getCollection()
public
getCollection() : mixed
Return values
mixed —parseBinds()
Parse single colon binds, ignoring double colon binds
private
parseBinds(mixed $str) : array<string|int, mixed>
Parameters
- $str : mixed
Return values
array<string|int, mixed> —of double colon binds
propertyReplacement()
Convert Gryphon properties to CEO properties so existing fetch statements continue to work
private
propertyReplacement(mixed $str[, mixed $modelString = '' ]) : string
Parameters
- $str : mixed
- $modelString : mixed = ''
Return values
string —transformBinds()
Convert fetch where and bind parameters from Gryphon/Foundry bind style (e.g. `foo = :foo` [':foo' => $bar]]`) to CEO/Phalcon bind style, (e.g. `foo = :foo:` ['foo' => $bar]]`)
private
transformBinds(mixed $arr) : array<string|int, mixed>
Parameters
- $arr : mixed