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 AbstractLoader

Abstract Loader

Charcoal\Cms\Service\Loader\AbstractLoader uses Charcoal\Translator\TranslatorAwareTrait (not available)

Direct known subclasses

Charcoal\Cms\Service\Loader\EventLoader, Charcoal\Cms\Service\Loader\NewsLoader, Charcoal\Cms\Service\Loader\SectionLoader
Namespace: Charcoal\Cms\Service\Loader
Located at Charcoal/Cms/Service/Loader/AbstractLoader.php
Methods summary
public
# __construct( array $data )

NewsLoader constructor.

NewsLoader constructor.

Parameters

$data
The Data.

Throws

Exception
When there is missing data.
protected Charcoal\Cms\Service\Loader\AbstractLoader
# setModelFactory( Charcoal\Factory\FactoryInterface $factory )

Set an object model factory.

Set an object model factory.

Parameters

$factory
The model factory, to create objects.

Returns

Charcoal\Cms\Service\Loader\AbstractLoader
public Charcoal\Factory\FactoryInterface
# modelFactory( )

Retrieve the object model factory.

Retrieve the object model factory.

Returns

Charcoal\Factory\FactoryInterface

Throws

RuntimeException
If the model factory was not previously set.
protected Charcoal\Cms\Service\Loader\AbstractLoader
# setCollectionLoader( Charcoal\Loader\CollectionLoader $loader )

Set a model collection loader.

Set a model collection loader.

Parameters

$loader
The collection loader.

Returns

Charcoal\Cms\Service\Loader\AbstractLoader
public Charcoal\Loader\CollectionLoader
# collectionLoader( )

Retrieve the model collection loader.

Retrieve the model collection loader.

Returns

Charcoal\Loader\CollectionLoader

Throws

RuntimeException
If the collection loader was not previously set.
Properties summary
protected Charcoal\Factory\FactoryInterface $modelFactory

Store the factory instance for the current class.

Store the factory instance for the current class.

#
protected Charcoal\Loader\CollectionLoader $collectionLoader

Store the collection loader for the current class.

Store the collection loader for the current class.

#
protected object $objType

$objType The object to load.

$objType The object to load.

#
API documentation generated by ApiGen