diff options
author | Simon Rettberg | 2016-05-11 19:00:30 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-05-11 19:00:30 +0200 |
commit | 1cc1c2ed092c46eb35893c1d85accb24cf43d7f9 (patch) | |
tree | 95c1302f4a1ae441e174a1dca64133e2873f8297 /inc/configmodule/branding.inc.php | |
parent | Add PhpStorm prefs (diff) | |
download | slx-admin-1cc1c2ed092c46eb35893c1d85accb24cf43d7f9.tar.gz slx-admin-1cc1c2ed092c46eb35893c1d85accb24cf43d7f9.tar.xz slx-admin-1cc1c2ed092c46eb35893c1d85accb24cf43d7f9.zip |
Still working in modularization cleanup and refinement
Diffstat (limited to 'inc/configmodule/branding.inc.php')
-rw-r--r-- | inc/configmodule/branding.inc.php | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/inc/configmodule/branding.inc.php b/inc/configmodule/branding.inc.php deleted file mode 100644 index b2f28c2f..00000000 --- a/inc/configmodule/branding.inc.php +++ /dev/null @@ -1,55 +0,0 @@ -<?php - -ConfigModule::registerModule( - ConfigModule_Branding::MODID, // ID - Dictionary::translate('config-module', 'branding_title'), // Title - Dictionary::translate('config-module', 'branding_description'), // Description - Dictionary::translate('config-module', 'group_branding'), // Group - true // Only one per config? -); - -class ConfigModule_Branding extends ConfigModule -{ - - const MODID = 'Branding'; - const VERSION = 1; - - private $tmpFile = false; - - protected function generateInternal($tgz, $parent) - { - if (!$this->validateConfig()) { - return $this->archive() !== false && file_exists($this->archive()); // No new temp file given, old archive still exists, pretend it worked... - } - $task = Taskmanager::submit('MoveFile', array( - 'source' => $this->tmpFile, - 'destination' => $tgz, - 'parentTask' => $parent, - 'failOnParentFail' => false - )); - return $task; - } - - protected function moduleVersion() - { - return self::VERSION; - } - - protected function validateConfig() - { - return $this->tmpFile !== false && file_exists($this->tmpFile); - } - - public function setData($key, $value) - { - if ($key !== 'tmpFile' || !is_string($value) || !file_exists($value)) - return false; - $this->tmpFile = $value; - } - - public function getData($key) - { - return false; - } - -} |