~xibo-maintainers/xibo/tempel

« back to all changes in this revision

Viewing changes to lib/Service/ConfigServiceInterface.php

  • Committer: Dan Garner
  • Date: 2016-02-12 10:41:25 UTC
  • mto: (454.4.130)
  • mto: This revision was merged to the branch mainline in revision 484.
  • Revision ID: git-v1:ca673f8ea522eac5f311ed779b0fbfeb35a0e4dd
Handle duration changes in XLF generation. Fixed region option factory.
xibosignage/xibo#721

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
/*
3
 
 * Spring Signage Ltd - http://www.springsignage.com
4
 
 * Copyright (C) 2016 Spring Signage Ltd
5
 
 * (ConfigServiceInterface.php)
6
 
 */
7
 
 
8
 
 
9
 
namespace Xibo\Service;
10
 
 
11
 
 
12
 
use Stash\Interfaces\PoolInterface;
13
 
use Xibo\Exception\ConfigurationException;
14
 
use Xibo\Storage\StorageServiceInterface;
15
 
 
16
 
/**
17
 
 * Interface ConfigServiceInterface
18
 
 * @package Xibo\Service
19
 
 */
20
 
interface ConfigServiceInterface
21
 
{
22
 
    /**
23
 
     * Set Service Dependencies
24
 
     * @param StorageServiceInterface $store
25
 
     * @param string $rootUri
26
 
     */
27
 
    public function setDependencies($store, $rootUri);
28
 
 
29
 
    /**
30
 
     * Get Cache Pool
31
 
     * @param PoolInterface $pool
32
 
     * @return mixed
33
 
     */
34
 
    public function setPool($pool);
35
 
 
36
 
    /**
37
 
     * Get Database Config
38
 
     * @return array
39
 
     */
40
 
    public function getDatabaseConfig();
41
 
 
42
 
    /** @return array */
43
 
    public function getSettings();
44
 
 
45
 
    /**
46
 
     * Gets the requested setting from the DB object given
47
 
     * @param $setting string
48
 
     * @param string[optional] $default
49
 
     * @return string
50
 
     */
51
 
    public function GetSetting($setting, $default = NULL);
52
 
 
53
 
    /**
54
 
     * Change Setting
55
 
     * @param string $setting
56
 
     * @param mixed $value
57
 
     */
58
 
    public function ChangeSetting($setting, $value);
59
 
 
60
 
    /**
61
 
     * Defines the Version and returns it
62
 
     * @param $object string[optional]
63
 
     * @return array|string
64
 
     * @throws \Exception
65
 
     */
66
 
    public function Version($object = '');
67
 
 
68
 
    /**
69
 
     * Is an upgrade pending?
70
 
     * @return bool
71
 
     */
72
 
    public function isUpgradePending();
73
 
 
74
 
    /**
75
 
     * Should the host be considered a proxy exception
76
 
     * @param $host
77
 
     * @return bool
78
 
     */
79
 
    public function isProxyException($host);
80
 
 
81
 
    /**
82
 
     * Get Proxy Configuration
83
 
     * @param array $httpOptions
84
 
     * @return array
85
 
     */
86
 
    public function getGuzzleProxy($httpOptions = []);
87
 
 
88
 
    /**
89
 
     * Checks the Environment and Determines if it is suitable
90
 
     * @return string
91
 
     */
92
 
    public function CheckEnvironment();
93
 
 
94
 
    /**
95
 
     * Loads the theme
96
 
     * @param string[Optional] $themeName
97
 
     * @throws ConfigurationException
98
 
     */
99
 
    public function loadTheme($themeName = null);
100
 
 
101
 
    /**
102
 
     * Get Theme Specific Settings
103
 
     * @param null $settingName
104
 
     * @param null $default
105
 
     * @return null
106
 
     */
107
 
    public function getThemeConfig($settingName = null, $default = null);
108
 
 
109
 
    /**
110
 
     * Get theme URI
111
 
     * @param string $uri
112
 
     * @param bool $local
113
 
     * @return string
114
 
     */
115
 
    public function uri($uri, $local = false);
116
 
 
117
 
    /**
118
 
     * Get App Root URI
119
 
     * @return mixed
120
 
     */
121
 
    public function rootUri();
122
 
 
123
 
    /**
124
 
     * Get cache drivers
125
 
     * @return array
126
 
     */
127
 
    public function getCacheDrivers();
128
 
 
129
 
    /**
130
 
     * Get the cache namespace
131
 
     * @return string
132
 
     */
133
 
    public function getCacheNamespace();
134
 
}
 
 
b'\\ No newline at end of file'