\Ceo\View\FunctionsFetchFunction

The fetch function sort of replicates Gryphon's original fetch tag with a number of supercharged changes.

  • First, and most obviously, it's not a tag anymore, but a function.
  • Second, we can define specific interfaces for each data type, making interacting with them much easier, for example:
    {%
    set articles = fetch('article')
     .wherePublished()
     .find()
    %}

You can also provide full class names to custom interfaces

{% set bloober = fetch('\\My\\Ns\\Bloober').orderForks().find() %}

Summary

Methods
Properties
Constants
__construct()
getFunctionOptions()
getDI()
getFunctionName()
handle()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct() 

getFunctionOptions()

getFunctionOptions() 

getDI()

getDI() 

getFunctionName()

getFunctionName() : string

Return function name

Returns

string

handle()

handle(string  $what) : mixed

Fetch some [dehydrated](https://stackoverflow.com/questions/6991135/what-does-it-mean-to-hydrate-an-object) data.

{{ fetch('container').findFirstById(1) }}

Parameters

string $what

Returns

mixed