\Charcoal\Cms\Service\ManagerAbstractManager

Abstract Manager

Summary

Methods
Properties
Constants
__construct()
modelFactory()
collectionLoader()
setAdminConfig()
adminConfig()
No public properties found
No constants found
setModelFactory()
setCollectionLoader()
$modelFactory
$collectionLoader
$adminConfig
N/A
No private methods found
No private properties found
N/A

Properties

$modelFactory

$modelFactory : \Charcoal\Factory\FactoryInterface

Store the factory instance for the current class.

Type

\Charcoal\Factory\FactoryInterface

$collectionLoader

$collectionLoader : \Charcoal\Loader\CollectionLoader

Store the collection loader for the current class.

Type

\Charcoal\Loader\CollectionLoader

$adminConfig

$adminConfig : object

Type

object — The admin config object model.

Methods

__construct()

__construct(array  $data) 

NewsManager constructor.

Parameters

array $data

The Data.

Throws

\Exception

When $data index is not set.

modelFactory()

modelFactory() : \Charcoal\Factory\FactoryInterface

Retrieve the object model factory.

Throws

\RuntimeException

If the model factory was not previously set.

Returns

\Charcoal\Factory\FactoryInterface

collectionLoader()

collectionLoader() : \Charcoal\Loader\CollectionLoader

Retrieve the model collection loader.

Throws

\RuntimeException

If the collection loader was not previously set.

Returns

\Charcoal\Loader\CollectionLoader

setAdminConfig()

setAdminConfig(mixed  $adminConfig) : self

Parameters

mixed $adminConfig

The admin configuration.

Returns

self

adminConfig()

adminConfig() : mixed

Returns

mixed

setModelFactory()

setModelFactory(\Charcoal\Factory\FactoryInterface  $factory) : self

Set an object model factory.

Parameters

\Charcoal\Factory\FactoryInterface $factory

The model factory, to create objects.

Returns

self

setCollectionLoader()

setCollectionLoader(\Charcoal\Loader\CollectionLoader  $loader) : self

Set a model collection loader.

Parameters

\Charcoal\Loader\CollectionLoader $loader

The collection loader.

Returns

self