\Ceo\View\FunctionsMergeFunction

Merge two or more result sets.

NOTE that this only works on CEO result sets and will not function on compatibility models.

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(  $mergable,   $key,   $direction = -1) : mixed

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

{%
    set hp = fetch('article')
                .wherePublished()
                .limit(10)
                .findByTags(['homepage'])
%}
{%
    set sports = fetch('article')
                .wherePublished()
                .limit(10)
                .findByTags(['sports'])
%}
{% set items = merge([hp, sports], 'published_at') %}
{% for item in items %}
    {{ macros.rssItem(item) }}
{% endfor %}

Parameters

$mergable
$key
$direction

Returns

mixed