\Google\View\Functions\FetchCalendarEventFluentFetch

Fluent Fetcher for google:calendarEvent

Summary

Methods
Properties
Constants
__construct()
setBinds()
getBinds()
andWherePublished()
wherePublished()
whereIn()
andWhereIn()
order()
findInPath()
findByTags()
findByAuthors()
find()
first()
__call()
where()
orderBy()
No public properties found
No constants found
No protected methods found
$builder
$parentModel
N/A
No private methods found
$_bindStack
$calendarChannelId
$eventChannelId
N/A

Properties

$builder

$builder : 

Type

$parentModel

$parentModel : 

Type

$_bindStack

$_bindStack : 

Type

$calendarChannelId

$calendarChannelId : 

Type

$eventChannelId

$eventChannelId : 

Type

Methods

__construct()

__construct() 

setBinds()

setBinds(  $binds) 

Store binds reference for later

Parameters

$binds

getBinds()

getBinds() 

Get binds reference

andWherePublished()

andWherePublished() : \Ceo\View\Functions\Fetch\Builder

Provides syntactically consistent andWherePublished

Returns

\Ceo\View\Functions\Fetch\Builder

wherePublished()

wherePublished() 

whereIn()

whereIn(  $key,   $values) : \Ceo\View\Functions\Fetch\Builder

Provides syntactically consistent andWhereIn handlers

Parameters

$key
$values

Returns

\Ceo\View\Functions\Fetch\Builder

andWhereIn()

andWhereIn(  $key,   $values) 

Parameters

$key
$values

order()

order() : \Ceo\View\Functions\Fetch\Builder

Provide an overload for the "orderBy" method

Returns

\Ceo\View\Functions\Fetch\Builder

findInPath()

findInPath(  $path,   $mode = '=') : \Ceo\View\Functions\Fetch\Collection

Provide a simple interface to handle findInPath functionality to find articles that fall in a SSTS path classification. Modifiers allow you to change the search mode

  • = Exact match (default)
  • > Ends with
  • < Starts with
  • ~ Contains
  • <> Does not contain
{# find articles where the ssts path matches 'sports/tennis' #}
{% set article = fetch('article').wherePublished().findInPath('sports/tennis') %}

{# find articles where the ssts path contains 'sports/tennis' anywhere #}
{% set article = fetch('article').wherePublished().findInPath('sports/tennis', '~') %}

Parameters

$path
$mode

Returns

\Ceo\View\Functions\Fetch\Collection

findByTags()

findByTags(  $tags = array(),   $mode = 'AND',   $binds = null) : array

Provide a simple interface to handle findByTags functionality ``` {% set article = fetch('article').wherePublished().findByTags(['foo', 'bar']) %} {% set article = fetch('article').wherePublished().findByTags(['foo', 'bar'], 'NOT') %} ``` Sluggifies the name so "Top Stories" and "top-stories" are treated the same.

Passing 'AND' or 'OR' for $mode will include tags, passing 'NOT' will exclude them, e.g. if you're looking for articles not tagged 'top-stories', use 'NOT' for $mode;

Parameters

$tags
$mode
$binds

Returns

array

findByAuthors()

findByAuthors(  $authors = array(),   $mode = 'AND',   $binds = null) : array

Provide a simple interface to handle findByAuthors functionality ``` {% set article = fetch('article').wherePublished().findByAuthors(['foo', 'bar']) %} ``` Sluggifies the name so "Top Stories" and "top-stories" are treated the same.

Parameters

$authors
$mode
$binds

Returns

array

find()

find(  $binds = NULL) : mixed

Execute the query and return objects

Parameters

$binds

Returns

mixed —

Result set of Phalcon models

first()

first(  $binds = null) : mixed

Execute the query, automatically limiting to one and return the first result

Parameters

$binds

Returns

mixed —

Result set

__call()

__call(  $f,   $args) 

Parameters

$f
$args

where()

where(  $str) : self

Override where, most of these are looking for featured, so "status = 1" classifieds. That changes with the Entry method.

Parameters

$str

Returns

self

orderBy()

orderBy(  $str) : self

Handle proper sorting

Parameters

$str

Returns

self