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 NewsLoader

News Loader

Charcoal\Cms\Service\Loader\AbstractLoader uses Charcoal\Translator\TranslatorAwareTrait (not available)
Extended by Charcoal\Cms\Service\Loader\NewsLoader
Namespace: Charcoal\Cms\Service\Loader
Located at Charcoal/Cms/Service/Loader/NewsLoader.php
Methods summary
public Charcoal\Loader\CollectionLoader
# all( )

Returns

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

Returns

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

Returns

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

Fetch upcoming entries based on the median or now.

Fetch upcoming entries based on the median or now.

Returns

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

Fetch upcoming entries based on the median or now.

Fetch upcoming entries based on the median or now.

Returns

Charcoal\Loader\CollectionLoader
public mixed
# median( )

Returns

mixed
public object
# objType( )

Returns

object
public Charcoal\Cms\Service\Loader\NewsLoader
# setMedian( string $median )

Parameters

$median
The median between upcoming and archive.

Returns

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

Parameters

$objType
The object type.

Returns

Charcoal\Cms\Service\Loader\NewsLoader
Methods inherited from Charcoal\Cms\Service\Loader\AbstractLoader
__construct(), collectionLoader(), modelFactory(), setCollectionLoader(), setModelFactory()
Properties summary
protected string $median

$median The median between upcoming and archive entries.

$median The median between upcoming and archive entries.

#
protected object $objType

$objType The object to load.

$objType The object to load.

#
Properties inherited from Charcoal\Cms\Service\Loader\AbstractLoader
$collectionLoader, $modelFactory
API documentation generated by ApiGen