You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AlexFloppy edited this page Jan 26, 2015
·
3 revisions
Description
Using for work with global options. Available management using dashboard crud.
Entity
namespace - unique namespace
key - option name
value - option value
description - option description
created - created timestamp
updated - last updated timestamp
Usage
/** @var \Options\Service\Options $optionService */$optionService = $this->getServiceLocator()->get('Options\Service\Options');
// save option 'key' with value 'value' in the 'default' namespace$optionService->setOption('key', 'value', 'default');
// get option 'key' from 'default' namespace$optionService->getOption('key', 'default');
// get options array from default namespace$optionService->getNamespace('default');