change table engine, fix small issues
This commit is contained in:
parent
fcf7a560ad
commit
dc9a1043a8
Binary file not shown.
@ -25,5 +25,9 @@ class d3_cfg_usersonline_Main extends d3_cfg_mod_main
|
|||||||
|
|
||||||
protected $_blHasTestModeSwitch = false;
|
protected $_blHasTestModeSwitch = false;
|
||||||
|
|
||||||
|
protected $_sMenuItemTitle = 'd3mxusersonline';
|
||||||
|
|
||||||
|
protected $_sMenuSubItemTitle = 'd3mxusersonline_settings';
|
||||||
|
|
||||||
//protected $_sDebugHelpTextIdent = 'D3_INQUIRY_MAIN_DEBUGACTIVE_DESC';
|
//protected $_sDebugHelpTextIdent = 'D3_INQUIRY_MAIN_DEBUGACTIVE_DESC';
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,10 @@ class d3_usersonline_statistic extends d3_cfg_mod_main
|
|||||||
protected $_iExpTime = 600; // (in seconds)
|
protected $_iExpTime = 600; // (in seconds)
|
||||||
protected $_sThisTemplate = 'd3_usersonline_statistic.tpl';
|
protected $_sThisTemplate = 'd3_usersonline_statistic.tpl';
|
||||||
|
|
||||||
|
protected $_sMenuItemTitle = 'd3mxusersonline';
|
||||||
|
|
||||||
|
protected $_sMenuSubItemTitle = 'd3mxusersonline_analysis';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
|
@ -33,9 +33,13 @@ DQ9';
|
|||||||
public $sRequirements = '';
|
public $sRequirements = '';
|
||||||
public $sBaseValue = '';
|
public $sBaseValue = '';
|
||||||
|
|
||||||
|
public $sMinModCfgVersion = '4.3.7.0';
|
||||||
|
|
||||||
protected $_aUpdateMethods = array(
|
protected $_aUpdateMethods = array(
|
||||||
array('check' => 'checkUsersOnlineTableExist',
|
array('check' => 'checkUsersOnlineTableExist',
|
||||||
'do' => 'updateUsersOnlineTableExist'),
|
'do' => 'updateUsersOnlineTableExist'),
|
||||||
|
array('check' => 'checkUsersOnlineTableEngine',
|
||||||
|
'do' => 'updateUsersOnlineTableEngine'),
|
||||||
array('check' => 'checkRenameFields',
|
array('check' => 'checkRenameFields',
|
||||||
'do' => 'fixRenameFields'),
|
'do' => 'fixRenameFields'),
|
||||||
array('check' => 'checkDeleteFields',
|
array('check' => 'checkDeleteFields',
|
||||||
@ -162,12 +166,39 @@ DQ9';
|
|||||||
$blRet = true;
|
$blRet = true;
|
||||||
|
|
||||||
if ($this->checkUsersOnlineTableExist()) {
|
if ($this->checkUsersOnlineTableExist()) {
|
||||||
$blRet = $this->_addTable2('d3usersonline', $this->aFields, $this->aIndizes, 'users online', 'MyISAM');
|
$blRet = $this->_addTable2('d3usersonline', $this->aFields, $this->aIndizes, 'users online', 'InnoDB');
|
||||||
}
|
}
|
||||||
|
|
||||||
return $blRet;
|
return $blRet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return bool true, if table has wrong engine
|
||||||
|
*/
|
||||||
|
public function checkUsersOnlineTableEngine()
|
||||||
|
{
|
||||||
|
/** @var d3installdbtable $oDbTable */
|
||||||
|
$oDbTable = oxNew('d3installdbtable', $this);
|
||||||
|
$aData = $oDbTable->getTableData('d3usersonline');
|
||||||
|
|
||||||
|
if (isset($aData) && count($aData) && isset($aData['ENGINE']) && $aData['ENGINE'] == 'InnoDB') {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public function updateUsersOnlineTableEngine()
|
||||||
|
{
|
||||||
|
/** @var d3installdbtable $oDbTable */
|
||||||
|
$oDbTable = oxNew('d3installdbtable', $this);
|
||||||
|
$blRet = $oDbTable->changeTableEngine('d3usersonline', 'InnoDB');
|
||||||
|
return $blRet;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
|
@ -25,7 +25,7 @@ $iLangNr = 0;
|
|||||||
$aLang = array(
|
$aLang = array(
|
||||||
'charset' => 'ISO-8859-15',
|
'charset' => 'ISO-8859-15',
|
||||||
|
|
||||||
'd3mxusersonline' => 'Benutzer online',
|
'd3mxusersonline' => '<i class="fa fa-bar-chart"></i> Benutzer online',
|
||||||
'd3mxusersonline_settings' => 'Einstellungen',
|
'd3mxusersonline_settings' => 'Einstellungen',
|
||||||
'd3tbclussersonline_settings_main' => 'Grundeinstellungen',
|
'd3tbclussersonline_settings_main' => 'Grundeinstellungen',
|
||||||
'd3mxusersonline_analysis' => 'Auswertungen',
|
'd3mxusersonline_analysis' => 'Auswertungen',
|
||||||
@ -35,4 +35,5 @@ $aLang = array(
|
|||||||
'D3_USERSONLINE_USER' => 'Benutzer',
|
'D3_USERSONLINE_USER' => 'Benutzer',
|
||||||
'D3_USERSONLINE_USERS' => 'Benutzer',
|
'D3_USERSONLINE_USERS' => 'Benutzer',
|
||||||
'D3_USERSONLINE_ALL' => 'gesamt',
|
'D3_USERSONLINE_ALL' => 'gesamt',
|
||||||
|
'D3_USERSONLINE_SAVE' => 'Speichern',
|
||||||
);
|
);
|
||||||
|
@ -25,7 +25,7 @@ $iLangNr = 0;
|
|||||||
$aLang = array(
|
$aLang = array(
|
||||||
'charset' => 'ISO-8859-15',
|
'charset' => 'ISO-8859-15',
|
||||||
|
|
||||||
'd3mxusersonline' => 'Users Online',
|
'd3mxusersonline' => '<i class="fa fa-bar-chart"></i> Users online',
|
||||||
'd3mxusersonline_settings' => 'Settings',
|
'd3mxusersonline_settings' => 'Settings',
|
||||||
'd3tbclussersonline_settings_main' => 'Main Settings',
|
'd3tbclussersonline_settings_main' => 'Main Settings',
|
||||||
'd3mxusersonline_analysis' => 'Analysis',
|
'd3mxusersonline_analysis' => 'Analysis',
|
||||||
@ -35,4 +35,5 @@ $aLang = array(
|
|||||||
'D3_USERSONLINE_USER' => 'user',
|
'D3_USERSONLINE_USER' => 'user',
|
||||||
'D3_USERSONLINE_USERS' => 'users',
|
'D3_USERSONLINE_USERS' => 'users',
|
||||||
'D3_USERSONLINE_ALL' => 'all',
|
'D3_USERSONLINE_ALL' => 'all',
|
||||||
|
'D3_USERSONLINE_SAVE' => 'save',
|
||||||
);
|
);
|
||||||
|
@ -128,7 +128,7 @@
|
|||||||
<td class="edittext ext_edittext" align="left">
|
<td class="edittext ext_edittext" align="left">
|
||||||
<br>
|
<br>
|
||||||
<span class="d3modcfg_btn icon status_ok">
|
<span class="d3modcfg_btn icon status_ok">
|
||||||
<input type="submit" name="save" value="[{oxmultilang ident="D3_INQUIRY_MAIN_SAVE"}]">
|
<input type="submit" name="save" value="[{oxmultilang ident="D3_USERSONLINE_SAVE"}]">
|
||||||
<span></span>
|
<span></span>
|
||||||
</span>
|
</span>
|
||||||
<br><br>
|
<br><br>
|
||||||
@ -142,13 +142,3 @@
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
[{include file="d3_cfg_mod_inc.tpl"}]
|
[{include file="d3_cfg_mod_inc.tpl"}]
|
||||||
|
|
||||||
<script type="text/javascript">
|
|
||||||
if (parent.parent) {
|
|
||||||
parent.parent.sShopTitle = "[{$actshopobj->oxshops__oxname->getRawValue()|oxaddslashes}]";
|
|
||||||
parent.parent.sMenuItem = "[{oxmultilang ident="d3mxusersonline"}]";
|
|
||||||
parent.parent.sMenuSubItem = "[{oxmultilang ident="d3mxusersonline_settings"}]";
|
|
||||||
parent.parent.sWorkArea = "[{$_act}]";
|
|
||||||
parent.parent.setTitle();
|
|
||||||
}
|
|
||||||
</script>
|
|
@ -149,13 +149,3 @@
|
|||||||
[{/if}]
|
[{/if}]
|
||||||
|
|
||||||
[{include file="d3_cfg_mod_inc.tpl"}]
|
[{include file="d3_cfg_mod_inc.tpl"}]
|
||||||
|
|
||||||
<script type="text/javascript">
|
|
||||||
if (parent.parent) {
|
|
||||||
parent.parent.sShopTitle = "[{$actshopobj->oxshops__oxname->getRawValue()|oxaddslashes}]";
|
|
||||||
parent.parent.sMenuItem = "[{oxmultilang ident="d3mxusersonline"}]";
|
|
||||||
parent.parent.sMenuSubItem = "[{oxmultilang ident="d3mxusersonline_settings"}]";
|
|
||||||
parent.parent.sWorkArea = "[{$_act}]";
|
|
||||||
parent.parent.setTitle();
|
|
||||||
}
|
|
||||||
</script>
|
|
@ -143,7 +143,7 @@ class requConfig
|
|||||||
'aParams' => array(
|
'aParams' => array(
|
||||||
'id' => 'd3modcfg_lib',
|
'id' => 'd3modcfg_lib',
|
||||||
'name' => 'Modul-Connector',
|
'name' => 'Modul-Connector',
|
||||||
'version' => '4.3.1.0',
|
'version' => '4.3.7.0',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user