Commit c64318ae authored by Damjan's avatar Damjan
Browse files

[TASK] Adding 'Service' sufix

-Related: forge.typo3.org/issues/31889
parent bbae7e9e
......@@ -24,12 +24,12 @@
***************************************************************/
/** general file functions */
require_once(t3lib_extMgm::extPath('lfeditor') . 'Classes/Service/File.php');
require_once(t3lib_extMgm::extPath('lfeditor') . 'Classes/Service/FileService.php');
/**
* backup class
*/
class FileBackup extends File {
class FileBackupService extends FileService {
/**
* @var string
*/
......@@ -211,7 +211,7 @@ class FileBackup extends File {
}
###############################
###### Meta File Methods ######
###### Meta FileService Methods ######
###############################
/**
......@@ -264,7 +264,7 @@ class FileBackup extends File {
}
#################################
###### Backup File Methods ######
###### Backup FileService Methods ######
#################################
/**
......@@ -473,9 +473,9 @@ class FileBackup extends File {
// Default-Code for using XCLASS (dont touch)
if (defined(
'TYPO3_MODE'
) && $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/Classes/Service/FileBackup.php']
) && $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/Classes/Service/FileBackupService.php']
) {
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/Classes/Service/FileBackup.php']);
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/Classes/Service/FileBackupService.php']);
}
?>
\ No newline at end of file
......@@ -24,12 +24,12 @@
***************************************************************/
/** general file functions */
require_once(t3lib_extMgm::extPath('lfeditor') . 'Classes/Service/FileBase.php');
require_once(t3lib_extMgm::extPath('lfeditor') . 'Classes/Service/FileBaseService.php');
/**
* base workspace class (php)
*/
class FileBasePHP extends FileBase {
class FileBasePHPService extends FileBaseService {
/**
* extended init
*
......@@ -274,9 +274,9 @@ class FileBasePHP extends FileBase {
// Default-Code for using XCLASS (dont touch)
if (defined(
'TYPO3_MODE'
) && $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/Classes/Service/FileBasePHP.php']
) && $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/Classes/Service/FileBasePHPService.php']
) {
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/Classes/Service/FileBasePHP.php']);
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/Classes/Service/FileBasePHPService.php']);
}
?>
\ No newline at end of file
......@@ -24,12 +24,12 @@
***************************************************************/
/** general filefunctions */
require_once(t3lib_extMgm::extPath('lfeditor') . 'Classes/Service/File.php');
require_once(t3lib_extMgm::extPath('lfeditor') . 'Classes/Service/FileService.php');
/**
* base workspace class
*/
abstract class FileBase extends File {
abstract class FileBaseService extends FileService {
/**
* @param string $content
* @param string $lang
......@@ -145,9 +145,9 @@ abstract class FileBase extends File {
// Default-Code for using XCLASS (dont touch)
if (defined(
'TYPO3_MODE'
) && $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/Classes/Service/FileBase.php']
) && $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/Classes/Service/FileBaseService.php']
) {
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/Classes/Service/FileBase.php']);
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/Classes/Service/FileBaseService.php']);
}
?>
\ No newline at end of file
......@@ -24,12 +24,12 @@
***************************************************************/
/** general file functions */
require_once(t3lib_extMgm::extPath('lfeditor') . 'Classes/Service/FileBase.php');
require_once(t3lib_extMgm::extPath('lfeditor') . 'Classes/Service/FileBaseService.php');
/**
* base workspace class (xlf)
*/
class FileBaseXLF extends FileBase {
class FileBaseXLFService extends FileBaseService {
/**
* extended init
*
......@@ -360,9 +360,9 @@ class FileBaseXLF extends FileBase {
// Default-Code for using XCLASS (dont touch)
if (defined(
'TYPO3_MODE'
) && $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/Classes/Service/FileBaseXLF.php']
) && $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/Classes/Service/FileBaseXLFService.php']
) {
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/Classes/Service/FileBaseXLF.php']);
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/Classes/Service/FileBaseXLFService.php']);
}
?>
\ No newline at end of file
......@@ -24,12 +24,12 @@
***************************************************************/
/** general file functions */
require_once(t3lib_extMgm::extPath('lfeditor') . 'Classes/Service/FileBase.php');
require_once(t3lib_extMgm::extPath('lfeditor') . 'Classes/Service/FileBaseService.php');
/**
* base workspace class (xml)
*/
class FileBaseXML extends FileBase {
class FileBaseXMLService extends FileBaseService {
/**
* extended init
*
......@@ -267,9 +267,9 @@ class FileBaseXML extends FileBase {
// Default-Code for using XCLASS (dont touch)
if (defined(
'TYPO3_MODE'
) && $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/Classes/Service/FileBaseXML.php']
) && $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/Classes/Service/FileBaseXMLService.php']
) {
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/Classes/Service/FileBaseXML.php']);
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/Classes/Service/FileBaseXMLService.php']);
}
?>
\ No newline at end of file
......@@ -26,7 +26,7 @@
/**
* include some general functions only usable for the 'lfeditor' module
*/
abstract class File {
abstract class FileService {
/**
* @var array
*/
......@@ -276,9 +276,9 @@ abstract class File {
// Default-Code for using XCLASS (dont touch)
if (defined(
'TYPO3_MODE'
) && $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/Classes/Service/File.php']
) && $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/Classes/Service/FileService.php']
) {
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/Classes/Service/File.php']);
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/Classes/Service/FileService.php']);
}
?>
\ No newline at end of file
......@@ -24,12 +24,12 @@
***************************************************************/
/** general file functions */
require_once(t3lib_extMgm::extPath('lfeditor') . 'Classes/Service/FileXll.php');
require_once(t3lib_extMgm::extPath('lfeditor') . 'Classes/Service/FileXllService.php');
/**
* xll workspace class (php)
*/
class FileXllPHP extends FileXll {
class FileXllPHPService extends FileXllService {
/**
* extended init
*
......@@ -164,9 +164,9 @@ class FileXllPHP extends FileXll {
// Default-Code for using XCLASS (dont touch)
if (defined(
'TYPO3_MODE'
) && $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/Classes/Service/FileXllPHP.php']
) && $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/Classes/Service/FileXllPHPService.php']
) {
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/Classes/Service/FileXllPHP.php']);
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/Classes/Service/FileXllPHPService.php']);
}
?>
\ No newline at end of file
......@@ -24,12 +24,12 @@
***************************************************************/
/** general file functions */
require_once(t3lib_extMgm::extPath('lfeditor') . 'Classes/Service/File.php');
require_once(t3lib_extMgm::extPath('lfeditor') . 'Classes/Service/FileService.php');
/**
* xll workspace class
*/
abstract class FileXll extends File {
abstract class FileXllService extends FileService {
/**
* @var string
*/
......@@ -164,9 +164,9 @@ abstract class FileXll extends File {
// Default-Code for using XCLASS (dont touch)
if (defined(
'TYPO3_MODE'
) && $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/Classes/Service/FileXll.php']
) && $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/Classes/Service/FileXllService.php']
) {
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/Classes/Service/FileXll.php']);
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/Classes/Service/FileXllService.php']);
}
?>
\ No newline at end of file
......@@ -24,12 +24,12 @@
***************************************************************/
/** general file functions */
require_once(t3lib_extMgm::extPath('lfeditor') . 'Classes/Service/FileXll.php');
require_once(t3lib_extMgm::extPath('lfeditor') . 'Classes/Service/FileXllService.php');
/**
* xll workspace class (xml)
*/
class FileXllXML extends FileXll {
class FileXllXMLService extends FileXllService {
/**
* extended init
*
......@@ -181,9 +181,9 @@ class FileXllXML extends FileXll {
// Default-Code for using XCLASS
if (defined(
'TYPO3_MODE'
) && $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/Classes/Service/FileXllXML.php']
) && $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/Classes/Service/FileXllXMLService.php']
) {
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/Classes/Service/FileXllXML.php']);
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/Classes/Service/FileXllXMLService.php']);
}
?>
\ No newline at end of file
......@@ -237,7 +237,7 @@ class Functions {
*
* @param string $refLang reference language
* @param array $languages language key array
* @param FileBasePHP $fileObj file object
* @param FileBasePHPService $fileObj file object
* @return array general information array
* @see outputGeneral()
*/
......
......@@ -6,15 +6,15 @@ return array(
'LFException' => $extensionPath . 'Classes/Exceptions/LFException.php',
'Typo3Lib' => $extensionPath . 'Classes/Util/Typo3Lib.php',
'SgLib' => $extensionPath . 'Classes/Util/SgLib.php',
'File' => $extensionPath . 'Classes/Service/File.php',
'FileBackup' => $extensionPath . 'Classes/Service/FileBackup.php',
'FileBase' => $extensionPath . 'Classes/Service/FileBase.php',
'FileBasePHP' => $extensionPath . 'Classes/Service/FileBasePHP.php',
'FileBaseXLF' => $extensionPath . 'Classes/Service/FileBaseXLF.php',
'FileBaseXML' => $extensionPath . 'Classes/Service/FileBaseXML.php',
'FileXll' => $extensionPath . 'Classes/Service/FileXll.php',
'FileXllPHP' => $extensionPath . 'Classes/Service/FileXllPHP.php',
'FileXllXML' => $extensionPath . 'Classes/Service/FileXllXML.php',
'FileService' => $extensionPath . 'Classes/Service/FileService.php',
'FileBackupService' => $extensionPath . 'Classes/Service/FileBackupService.php',
'FileBaseService' => $extensionPath . 'Classes/Service/FileBaseService.php',
'FileBasePHPService' => $extensionPath . 'Classes/Service/FileBasePHPService.php',
'FileBaseXLFService' => $extensionPath . 'Classes/Service/FileBaseXLFService.php',
'FileBaseXMLService' => $extensionPath . 'Classes/Service/FileBaseXMLService.php',
'FileXllService' => $extensionPath . 'Classes/Service/FileXllService.php',
'FileXllPHPService' => $extensionPath . 'Classes/Service/FileXllPHPService.php',
'FileXllXMLService' => $extensionPath . 'Classes/Service/FileXllXMLService.php',
'Functions' => $extensionPath . 'Classes/Util/Functions.php',
);
......
......@@ -11,7 +11,7 @@
***************************************************************/
$EM_CONF[$_EXTKEY] = array(
'title' => 'Language File Editor',
'title' => 'Language FileService Editor',
'description' => 'This module serves several functions for editing of language files.
Translators, extension authors and simple users are supported with
special functions for each of them.
......@@ -58,7 +58,7 @@ $EM_CONF[$_EXTKEY] = array(
),
'suggests' => array(
),
'_md5_values_when_last_written' => 'a:47:{s:16:"ext_autoload.php";s:4:"9347";s:21:"ext_conf_template.txt";s:4:"ea47";s:12:"ext_icon.gif";s:4:"9905";s:14:"ext_tables.php";s:4:"ccca";s:14:"doc/manual.sxw";s:4:"ce20";s:26:"Classes/Exceptions/LFException.php";s:4:"323d";s:20:"Classes/Util/SgLib.php";s:4:"4426";s:36:"Classes/Service/File.php";s:4:"c855";s:43:"Classes/Service/FileBackup.php";s:4:"bfdf";s:41:"Classes/Service/FileBase.php";s:4:"d9ad";s:44:"Classes/Service/FileBasePHP.php";s:4:"9ffa";s:44:"Classes/Service/FileBaseXLF.php";s:4:"4be3";s:44:"Classes/Service/FileBaseXML.php";s:4:"128c";s:40:"Classes/Service/FileXll.php";s:4:"d57b";s:43:"Classes/Service/FileXllPHP.php";s:4:"6cc0";s:43:"Classes/Service/FileXllXML.php";s:4:"0fed";s:41:"Classes/Util/Functions.php";s:4:"e76d";s:40:"mod1/class.tx_lfeditor_mod1_template.php";s:4:"4728";s:23:"Classes/Util/Typo3Lib.php";s:4:"aded";s:13:"mod1/conf.php";s:4:"e4a4";s:21:"mod1/da.locallang.xml";s:4:"e04f";s:25:"mod1/da.locallang_mod.xml";s:4:"5d3b";s:21:"mod1/de.locallang.xml";s:4:"8181";s:25:"mod1/de.locallang_mod.xml";s:4:"5d55";s:21:"mod1/fi.locallang.xml";s:4:"644f";s:25:"mod1/fi.locallang_mod.xml";s:4:"3557";s:14:"mod1/index.php";s:4:"fe2a";s:18:"mod1/locallang.xml";s:4:"638f";s:22:"mod1/locallang_mod.xml";s:4:"93f7";s:19:"mod1/moduleicon.png";s:4:"f2a8";s:22:"mod1/textareaResize.js";s:4:"5411";s:21:"mod1/tinyMCEConfig.js";s:4:"04ac";s:25:"mod1/tx_lfeditor_mod1.css";s:4:"17e8";s:24:"mod1/tx_lfeditor_mod1.js";s:4:"9bf8";s:19:"res/images/diff.gif";s:4:"3ba9";s:22:"res/images/garbage.gif";s:4:"5d02";s:19:"res/images/join.gif";s:4:"86ea";s:25:"res/images/joinBottom.gif";s:4:"3822";s:19:"res/images/line.gif";s:4:"d3d7";s:19:"res/images/mail.gif";s:4:"aa1c";s:22:"res/images/recover.gif";s:4:"ee1a";s:24:"res/images/treeMinus.gif";s:4:"dd7a";s:30:"res/images/treeMinusBottom.gif";s:4:"a1b6";s:23:"res/images/treePlus.gif";s:4:"86da";s:29:"res/images/treePlusBottom.gif";s:4:"6ac4";s:19:"res/zip/ZipFile.php";s:4:"4310";s:24:"templates/main_mod1.html";s:4:"a04f";}',
'_md5_values_when_last_written' => 'a:47:{s:16:"ext_autoload.php";s:4:"9347";s:21:"ext_conf_template.txt";s:4:"ea47";s:12:"ext_icon.gif";s:4:"9905";s:14:"ext_tables.php";s:4:"ccca";s:14:"doc/manual.sxw";s:4:"ce20";s:26:"Classes/Exceptions/LFException.php";s:4:"323d";s:20:"Classes/Util/SgLib.php";s:4:"4426";s:36:"Classes/Service/FileService.php";s:4:"c855";s:43:"Classes/Service/FileBackupService.php";s:4:"bfdf";s:41:"Classes/Service/FileBaseService.php";s:4:"d9ad";s:44:"Classes/Service/FileBasePHPService.php";s:4:"9ffa";s:44:"Classes/Service/FileBaseXLFService.php";s:4:"4be3";s:44:"Classes/Service/FileBaseXMLService.php";s:4:"128c";s:40:"Classes/Service/FileXllService.php";s:4:"d57b";s:43:"Classes/Service/FileXllPHPService.php";s:4:"6cc0";s:43:"Classes/Service/FileXllXMLService.php";s:4:"0fed";s:41:"Classes/Util/Functions.php";s:4:"e76d";s:40:"mod1/class.tx_lfeditor_mod1_template.php";s:4:"4728";s:23:"Classes/Util/Typo3Lib.php";s:4:"aded";s:13:"mod1/conf.php";s:4:"e4a4";s:21:"mod1/da.locallang.xml";s:4:"e04f";s:25:"mod1/da.locallang_mod.xml";s:4:"5d3b";s:21:"mod1/de.locallang.xml";s:4:"8181";s:25:"mod1/de.locallang_mod.xml";s:4:"5d55";s:21:"mod1/fi.locallang.xml";s:4:"644f";s:25:"mod1/fi.locallang_mod.xml";s:4:"3557";s:14:"mod1/index.php";s:4:"fe2a";s:18:"mod1/locallang.xml";s:4:"638f";s:22:"mod1/locallang_mod.xml";s:4:"93f7";s:19:"mod1/moduleicon.png";s:4:"f2a8";s:22:"mod1/textareaResize.js";s:4:"5411";s:21:"mod1/tinyMCEConfig.js";s:4:"04ac";s:25:"mod1/tx_lfeditor_mod1.css";s:4:"17e8";s:24:"mod1/tx_lfeditor_mod1.js";s:4:"9bf8";s:19:"res/images/diff.gif";s:4:"3ba9";s:22:"res/images/garbage.gif";s:4:"5d02";s:19:"res/images/join.gif";s:4:"86ea";s:25:"res/images/joinBottom.gif";s:4:"3822";s:19:"res/images/line.gif";s:4:"d3d7";s:19:"res/images/mail.gif";s:4:"aa1c";s:22:"res/images/recover.gif";s:4:"ee1a";s:24:"res/images/treeMinus.gif";s:4:"dd7a";s:30:"res/images/treeMinusBottom.gif";s:4:"a1b6";s:23:"res/images/treePlus.gif";s:4:"86da";s:29:"res/images/treePlusBottom.gif";s:4:"6ac4";s:19:"res/zip/ZipFile.php";s:4:"4310";s:24:"templates/main_mod1.html";s:4:"a04f";}',
);
?>
\ No newline at end of file
......@@ -66,17 +66,17 @@ class tx_lfeditor_module1 extends t3lib_SCbase {
private $extConfig;
/**
* @var FileBasePHP
* @var FileBasePHPService
*/
private $fileObj;
/**
* @var FileBasePHP
* @var FileBasePHPService
*/
private $convObj;
/**
* @var FileBackup
* @var FileBackupService
*/
private $backupObj;
......@@ -302,7 +302,7 @@ class tx_lfeditor_module1 extends t3lib_SCbase {
* creates and instantiates a file object
*
* Naming Convention:
* File<workspace><filetype>
* File<workspace><filetype>Service
*
* @throws LFException raised if the the object cant be generated or language file not read
* @throws Exception|LFException
......@@ -344,7 +344,7 @@ class tx_lfeditor_module1 extends t3lib_SCbase {
}
// create file object
$className = 'File' . ucfirst($mode) . strtoupper($fileType);
$className = 'File' . ucfirst($mode) . strtoupper($fileType) . 'Service';
if (!class_exists($className)) {
throw new LFException('failure.langfile.unknownType');
}
......@@ -427,7 +427,7 @@ class tx_lfeditor_module1 extends t3lib_SCbase {
// create and initialize the backup object
try {
$this->backupObj = t3lib_div::makeInstance('FileBackup');
$this->backupObj = t3lib_div::makeInstance('FileBackupService');
$this->backupObj->init('', $backupPath, $metaFile);
$this->backupObj->setVar($informations);
} catch (LFException $e) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment