Db
6 years ago
Handler
6 years ago
TableLogAction
6 years ago
Visit
6 years ago
Action.php
6 years ago
ActionPageview.php
6 years ago
Cache.php
6 years ago
Db.php
6 years ago
Failures.php
6 years ago
FingerprintSalt.php
6 years ago
GoalManager.php
6 years ago
Handler.php
6 years ago
IgnoreCookie.php
6 years ago
LogTable.php
6 years ago
Model.php
6 years ago
PageUrl.php
6 years ago
Request.php
5 years ago
RequestProcessor.php
6 years ago
RequestSet.php
6 years ago
Response.php
6 years ago
ScheduledTasksRunner.php
6 years ago
Settings.php
5 years ago
TableLogAction.php
6 years ago
TrackerCodeGenerator.php
6 years ago
TrackerConfig.php
6 years ago
Visit.php
5 years ago
VisitExcluded.php
6 years ago
VisitInterface.php
6 years ago
Visitor.php
6 years ago
VisitorNotFoundInDb.php
6 years ago
VisitorRecognizer.php
6 years ago
TrackerConfig.php
40 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Piwik - free/libre analytics platform |
| 4 | * |
| 5 | * @link https://matomo.org |
| 6 | * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later |
| 7 | * |
| 8 | */ |
| 9 | namespace Piwik\Tracker; |
| 10 | |
| 11 | use Piwik\Config; |
| 12 | use Piwik\Tracker; |
| 13 | |
| 14 | class TrackerConfig |
| 15 | { |
| 16 | /** |
| 17 | * Update Tracker config |
| 18 | * |
| 19 | * @param string $name Setting name |
| 20 | * @param mixed $value Value |
| 21 | */ |
| 22 | public static function setConfigValue($name, $value) |
| 23 | { |
| 24 | $section = self::getConfig(); |
| 25 | $section[$name] = $value; |
| 26 | Config::getInstance()->Tracker = $section; |
| 27 | } |
| 28 | |
| 29 | public static function getConfigValue($name) |
| 30 | { |
| 31 | $config = self::getConfig(); |
| 32 | return $config[$name]; |
| 33 | } |
| 34 | |
| 35 | private static function getConfig() |
| 36 | { |
| 37 | return Config::getInstance()->Tracker; |
| 38 | } |
| 39 | } |
| 40 |