Class Manager
Xoops services manager, locate, register, choose and dispatch
Package: Xoops\Core
Category: Xoops\Core\Service\Manager
Copyright: 2013-2014 The XOOPS Project https://github.com/XOOPS/XoopsCore
License: GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
Author: Richard Griffith richard@geekwright.com
Version: Release: 1.0
Since: 2.6.0
Link: http://xoops.org
Located at oops_lib/Xoops/Core/Service/Manager.php
protected
|
|
public static
|
|
public
array
|
|
protected
array
|
|
protected
|
#
saveProviderPrefs( array $providerPrefs )
saveProviderPrefs - record array of provider preferences in config file, and update cache |
public
|
#
saveChoice( string $service, array $choices )
saveChoice - record priority choices for service providers |
public
|
#
registerChoice( string $service, array $choices )
registerChoice - record priority choices for service providers |
public
array
|
|
public
|
integer |
MODE_EXCLUSIVE
Service Mode constant - Exclusive mode where only one located service will be used. |
#
1
|
integer |
MODE_CHOICE
Service Mode constant - Choice mode where one service from potentially many located services will be used. The service dispatched will be selected by system default. |
#
2
|
integer |
MODE_PREFERENCE
Service Mode constant - Choice mode where one service from potentially many located services will be used. The service dispatched will be selected by user preference, or system default if no user valid preference is available. |
#
4
|
integer |
MODE_MULTIPLE
Service Mode constant - Multiple mode where all located services will be dispatched in priority order. |
#
8
|
integer |
PRIORITY_SELECTED
Provider priorities |
#
0
|
integer |
PRIORITY_HIGH
|
#
1
|
integer |
PRIORITY_MEDIUM
|
#
5
|
integer |
PRIORITY_LOW
|
#
9
|
protected
array
|
$services
Services registry - array keyed on service name, with provider object as value |
#
array()
|
protected
array|null
|
$providerPrefs
Provider Preferences - array keyed on service name, where each element is an array of provider name => priority entries |
#
null
|