Skip to content

Instantly share code, notes, and snippets.

@tmaroschik
tmaroschik / device_descriptions_HBW-SD6-Multikey-v1.json
Last active Jun 14, 2020
HBW-SD6-Multikey-v1 device descriptions
View device_descriptions_HBW-SD6-Multikey-v1.json
{
"HBW-SD6-Multikey-v1": {
"MASTER": {
"LOGGING_TIME": {
"DEFAULT": 5.0,
"FLAGS": 1,
"ID": "LOGGING_TIME",
"MAX": 25.0,
"MIN": 0.1,
"OPERATIONS": 7,
View AbstractFields.php
<?php
/***************************************************************
* Copyright notice
*
* (c) 2011 Thomas Maroschik <tmaroschik@dfau.de>
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@tmaroschik
tmaroschik / AjaxLoginHandler.php
Created Aug 21, 2012
One of the first TYPO3 6.0 Namespaced classes.
View AjaxLoginHandler.php
<?php
namespace TYPO3\CMS\Backend;
/***************************************************************
* Copyright notice
*
* (c) 2008-2011 Christoph Koehler (christoph@webempoweredchurch.org)
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
@tmaroschik
tmaroschik / gist:3183702
Created Jul 26, 2012
Flux Grid Language Hack
View gist:3183702
--- ext/flux/Classes/Backend/TceMain.php
+++ ext/flux/Classes/Backend/TceMain.php
@@ -182,12 +182,23 @@
case 'new':
$newUid = $reference->substNEWwithIDs[$id];
$oldUid = $fieldArray['t3_origuid'];
+ $newLanguageUid = NULL;
+ if ($oldUid) {
+ $oldRecord = $GLOBALS['TYPO3_DB']->exec_SELECTgetSingleRow('uid,' . $GLOBALS['TCA'][$table]['ctrl']['languageField'], $table, 'uid = ' . $oldUid);
+ if (isset($oldRecord[$GLOBALS['TCA'][$table]['ctrl']['languageField']])) {