Skip to content

Commit

Permalink
[TASK] Rename to TemplaVoilà Plus
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Opitz committed Mar 9, 2017
1 parent 6c01862 commit 03a22f2
Show file tree
Hide file tree
Showing 126 changed files with 1,576 additions and 3,513 deletions.
1,940 changes: 0 additions & 1,940 deletions ChangeLog

This file was deleted.

12 changes: 6 additions & 6 deletions Classes/Command/UnusedContentElementCommand.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Extension\Templavoila\Command;
namespace Ppi\TemplaVoilaPlus\Command;

/*
* This file is part of the TYPO3 CMS project.
Expand Down Expand Up @@ -65,7 +65,7 @@ public function __construct()
$this->cli_options[] = array('--depth int', 'Setting traversal depth. 0 (zero) will only analyse start page (see --pid), 1 will traverse one level of subpages etc.');
$this->cli_options[] = array('--excludePageIdList commalist', 'Specifies page ids to exclude from the processing.');

$this->cli_help['name'] = 'tx_templavoila_unusedce -- Find unused content elements on pages';
$this->cli_help['name'] = 'tx_templavoilaplus_unusedce -- Find unused content elements on pages';
$this->cli_help['description'] = trim('
Traversing page tree and finding content elements which are not used on pages and seems to have no references to them - hence is probably "lost" and could be deleted.
Expand Down Expand Up @@ -123,7 +123,7 @@ public function main_parseTreeCallBack($tableName, $uid, $echoLevel, $versionSwa
if ($tableName === 'pages' && $uid > 0 && !in_array($uid, $this->excludePageIdList)) {
if (!$versionSwapmode) {
// Initialize TemplaVoila API class:
$apiObj = GeneralUtility::makeInstance(\Extension\Templavoila\Service\ApiService::class, 'pages');
$apiObj = GeneralUtility::makeInstance(\Ppi\TemplaVoilaPlus\Service\ApiService::class, 'pages');

// Fetch the content structure of page:
$contentTreeData = $apiObj->getContentTree('pages', BackendUtility::getRecordRaw('pages', 'uid=' . (int)$uid));
Expand Down Expand Up @@ -173,7 +173,7 @@ public function main_parseTreeCallBack($tableName, $uid, $echoLevel, $versionSwa
// Register elements etc:
$this->resultArray['all_unused'][$row['uid']] = array($row['header'], count($refrows));
if ($echoLevel > 2) {
echo chr(10) . ' [tx_templavoila_unusedce:] tt_content:' . $row['uid'] . ' was not used on page...';
echo chr(10) . ' [tx_templavoilaplus_unusedce:] tt_content:' . $row['uid'] . ' was not used on page...';
}
if (!count($refrows)) {
if ($isATranslationChild) {
Expand All @@ -194,12 +194,12 @@ public function main_parseTreeCallBack($tableName, $uid, $echoLevel, $versionSwa
}
} else {
if ($echoLevel > 2) {
echo chr(10) . ' [tx_templavoila_unusedce:] Did not check page - did not have a Data Structure set.';
echo chr(10) . ' [tx_templavoilaplus_unusedce:] Did not check page - did not have a Data Structure set.';
}
}
} else {
if ($echoLevel > 2) {
echo chr(10) . ' [tx_templavoila_unusedce:] Did not check page - was on offline page.';
echo chr(10) . ' [tx_templavoilaplus_unusedce:] Did not check page - was on offline page.';
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Classes/Configuration/FlexForm/FlexFormTools.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Extension\Templavoila\Configuration\FlexForm;
namespace Ppi\TemplaVoilaPlus\Configuration\FlexForm;

/*
* This file is part of the TYPO3 CMS project.
Expand Down
116 changes: 58 additions & 58 deletions Classes/Controller/BackendControlCenterController.php

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions Classes/Controller/BackendFlexformCleanerController.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Extension\Templavoila\Controller;
namespace Ppi\TemplaVoilaPlus\Controller;

/*
* This file is part of the TYPO3 CMS project.
Expand All @@ -20,10 +20,10 @@
use TYPO3\CMS\Core\Imaging\Icon;
use TYPO3\CMS\Core\Utility\GeneralUtility;

use Extension\Templavoila\Utility\TemplaVoilaUtility;
use Ppi\TemplaVoilaPlus\Utility\TemplaVoilaUtility;

$GLOBALS['LANG']->includeLLFile(
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('templavoila') . 'Resources/Private/Language/BackendFlexformCleaner.xlf'
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('templavoilaplus') . 'Resources/Private/Language/BackendFlexformCleaner.xlf'
);

/**
Expand Down Expand Up @@ -53,7 +53,7 @@ class BackendFlexformCleanerController extends \TYPO3\CMS\Backend\Module\BaseScr
*
* @var string
*/
public $extKey = 'templavoila';
public $extKey = 'templavoilaplus';

/**
* The name of the module
Expand Down Expand Up @@ -82,7 +82,7 @@ public function init()
$this->iconFactory = $this->moduleTemplate->getIconFactory();
$this->buttonBar = $this->moduleTemplate->getDocHeaderComponent()->getButtonBar();

$this->extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['templavoila']);
$this->extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['templavoilaplus']);
}

/*******************************************
Expand Down Expand Up @@ -127,15 +127,15 @@ public function main()
// Clean up XML:
$cleanXML = '';
if (TemplaVoilaUtility::getBackendUser()->isAdmin()) {
if ('tx_templavoila_flex' == $this->viewTable['field_flex']) {
if ('tx_templavoilaplus_flex' == $this->viewTable['field_flex']) {
$flexObj = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Configuration\FlexForm\FlexFormTools::class);
if ($record['tx_templavoila_flex']) {
$cleanXML = $flexObj->cleanFlexFormXML($this->viewTable['table'], 'tx_templavoila_flex', $record);
if ($record['tx_templavoilaplus_flex']) {
$cleanXML = $flexObj->cleanFlexFormXML($this->viewTable['table'], 'tx_templavoilaplus_flex', $record);

// If the clean-button was pressed, save right away:
if (GeneralUtility::_POST('_CLEAN_XML')) {
$dataArr = array();
$dataArr[$this->viewTable['table']][$this->viewTable['uid']]['tx_templavoila_flex'] = $cleanXML;
$dataArr[$this->viewTable['table']][$this->viewTable['uid']]['tx_templavoilaplus_flex'] = $cleanXML;

// Init TCEmain object and store:
$tce = GeneralUtility::makeInstance(\TYPO3\CMS\Core\DataHandling\DataHandler::class);
Expand Down Expand Up @@ -283,7 +283,7 @@ public function addBackButton()
public function markUpXML($str)
{
// Make instance of syntax highlight class:
$hlObj = GeneralUtility::makeInstance(\Extension\Templavoila\Service\SyntaxHighlightingService::class);
$hlObj = GeneralUtility::makeInstance(\Ppi\TemplaVoilaPlus\Service\SyntaxHighlightingService::class);

// Check which document type, if applicable:
if (strstr(substr($str, 0, 100), '<T3DataStructure')) {
Expand Down
Loading

0 comments on commit 03a22f2

Please sign in to comment.