\Pages\ServicePages

Class Pages

Summary

Methods
Properties
Constants
__construct()
getServiceLocator()
getObjectManager()
getOption()
getNamespace()
setOption()
No public properties found
No constants found
No protected methods found
$serviceManager
N/A
No private methods found
No private properties found
N/A

Properties

$serviceManager

$serviceManager : null|\Zend\ServiceManager\ServiceManager

Type

null|\Zend\ServiceManager\ServiceManager

Methods

__construct()

__construct(\Zend\ServiceManager\ServiceManager  $sm) 

Parameters

\Zend\ServiceManager\ServiceManager $sm

getServiceLocator()

getServiceLocator() : null|\Zend\ServiceManager\ServiceManager

Returns

null|\Zend\ServiceManager\ServiceManager

getObjectManager()

getObjectManager() : \Doctrine\ORM\EntityManager

Returns

\Doctrine\ORM\EntityManager

getOption()

getOption(  $key, string  $namespace = \Options\Entity\Options::NAMESPACE_DEFAULT) : mixed

get option by key & namespace

Parameters

$key
string $namespace

Returns

mixed

getNamespace()

getNamespace(string  $namespace = \Options\Entity\Options::NAMESPACE_DEFAULT) : mixed

get options by namespace

Parameters

string $namespace

Returns

mixed

setOption()

setOption(  $key,   $value, string  $namespace = \Options\Entity\Options::NAMESPACE_DEFAULT, null  $description = null) 

set option

Parameters

$key
$value
string $namespace
null $description

Throws

\Exception