Overview

Namespaces

  • Charcoal
    • Admin
      • Widget
        • Cms
    • Cms
      • Config
      • Mixin
        • Traits
      • Route
      • Section
      • Service
        • Loader
        • Manager
      • ServiceProvider
      • Support
        • Helpers
        • Interfaces
        • Traits
    • Property

Classes

  • AbstractLoader
  • EventLoader
  • NewsLoader
  • SectionLoader
  • Overview
  • Namespace
  • Class

Class EventLoader

Event Loader

Charcoal\Cms\Service\Loader\AbstractLoader uses Charcoal\Translator\TranslatorAwareTrait (not available)
Extended by Charcoal\Cms\Service\Loader\EventLoader
Namespace: Charcoal\Cms\Service\Loader
Located at Charcoal/Cms/Service/Loader/EventLoader.php
Methods summary
public [type]
# proto( )

[proto description]

[proto description]

Returns

[type]
[description]
public Charcoal\Loader\CollectionLoader
# all( )

Returns

Charcoal\Loader\CollectionLoader
public Charcoal\Loader\CollectionLoader
# published( )

Returns

Charcoal\Loader\CollectionLoader
public Charcoal\Loader\CollectionLoader
# upcoming( )

Fetch upcoming entries based on the lifespan or now.

Fetch upcoming entries based on the lifespan or now.

Returns

Charcoal\Loader\CollectionLoader
public Charcoal\Loader\CollectionLoader
# archive( )

Fetch upcoming entries based on the lifespan or now.

Fetch upcoming entries based on the lifespan or now.

Returns

Charcoal\Loader\CollectionLoader
public Charcoal\Loader\CollectionLoader
# since( mixed $date )

Parameters

$date

The news date to filter [startDate, endDate] DateTimeInterface string.

Returns

Charcoal\Loader\CollectionLoader
public Charcoal\Loader\CollectionLoader
# to( mixed $date )

Parameters

$date

The news date to filter [startDate, endDate] DateTimeInterface string.

Returns

Charcoal\Loader\CollectionLoader
public mixed
# lifespan( )

Returns

mixed
public object
# objType( )

Returns

object
public Charcoal\Cms\Service\Loader\EventLoader
# setLifespan( string $lifespan )

Parameters

$lifespan
The lifespan of events.

Returns

Charcoal\Cms\Service\Loader\EventLoader
Chainable
public Charcoal\Cms\Service\Loader\EventLoader
# setObjType( object $objType )

Parameters

$objType
The object type.

Returns

Charcoal\Cms\Service\Loader\EventLoader
Chainable
Methods inherited from Charcoal\Cms\Service\Loader\AbstractLoader
__construct(), collectionLoader(), modelFactory(), setCollectionLoader(), setModelFactory()
Properties inherited from Charcoal\Cms\Service\Loader\AbstractLoader
$collectionLoader, $modelFactory, $objType
API documentation generated by ApiGen