Skip to content

Commit

Permalink
Ajout des commandes des ambiances sonores + 20 icônes sur 72
Browse files Browse the repository at this point in the history
  • Loading branch information
dough29 committed Nov 17, 2015
1 parent ed394d3 commit 3280134
Show file tree
Hide file tree
Showing 24 changed files with 101 additions and 2 deletions.
28 changes: 28 additions & 0 deletions core/class/onkyo.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,34 @@ public function preUpdate() {
}

public function postUpdate() {
// Vérifier si toutes les commandes sont créées
$currentCommands = array();
foreach ($this->getCmd() as $cmd) {
$currentCommands[] = $cmd->getLogicalId();
}

$commands = $this->getCommandsFromJSon();
foreach ($commands as $category=>$catCommands) {
foreach ($catCommands as $commandName=>$conf) {
foreach ($conf as $command=>$type) {
if (!in_array(ereg_replace("[^a-z0-9]", "", strtolower($commandName)), $currentCommands)) {
$type_params = $this->getTypeParams($type);
$onkyoCmd = new onkyoCmd();
$onkyoCmd->setName($commandName);
$onkyoCmd->setEqLogic_id($this->id);
$onkyoCmd->setConfiguration($type_params['configuration'], $command);
if (!is_null($type_params['unite'])) {
$onkyoCmd->setUnite($type_params['unite']);
}
$onkyoCmd->setType($type);
$onkyoCmd->setSubType($type_params['subtype']);
$onkyoCmd->setIsVisible(0);
$onkyoCmd->setLogicalId(ereg_replace("[^a-z0-9]", "", strtolower($commandName)));
$onkyoCmd->save();
}
}
}
}
}

public function postInsert() {
Expand Down
73 changes: 72 additions & 1 deletion core/template/ressources/commands.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,78 @@
"Audio ARC":{"SLA07":"action"}
},
"Ambiances sonores":{
"Preset DolbyEX2":{"LMD41":"action"}
"HC_Stereo":{"LMD00":"action"},
"HC_Direct":{"LMD01":"action"},
"HC_Surround":{"LMD02":"action"},
"HC_Film/GameRPG":{"LMD03":"action"},
"HC_THX":{"LMD04":"action"},
"HC_Action/GameAction":{"LMD05":"action"},
"HC_Musical/GameRock":{"LMD06":"action"},
"HC_MonoMovie":{"LMD07":"action"},
"HC_Orchestra":{"LMD08":"action"},
"HC_Unplugged":{"LMD09":"action"},
"HC_StudioMix":{"LMD0A":"action"},
"HC_Tv-logic":{"LMD0B":"action"},
"HC_AllChStereo":{"LMD0C":"action"},
"HC_TheaterDimensional":{"LMD0D":"action"},
"HC_Enhanced7/GameSports":{"LMD0E":"action"},
"HC_Mono":{"LMD0F":"action"},
"HC_Pureaudio":{"LMD11":"action"},
"HC_Multiplex":{"LMD12":"action"},
"HC_FullMono":{"LMD13":"action"},
"HC_DolbyVirtual":{"LMD14":"action"},
"HC_DTSSurroundSensation":{"LMD15":"action"},
"HC_AudysseyDSX":{"LMD16":"action"},
"HC_WholeHouseMode":{"LMD1F":"action"},
"HC_Surround51":{"LMD40":"action"},
"HC_DolbyEX2":{"LMD41":"action"},
"HC_THXCinema":{"LMD42":"action"},
"HC_THXSurroundEX":{"LMD43":"action"},
"HC_THXMusic":{"LMD44":"action"},
"HC_THXGames":{"LMD45":"action"},
"HC_THXU2/S2/I/S/Cinema/Cinema2":{"LMD50":"action"},
"HC_THXU2/S2/I/S/Music":{"LMD51":"action"},
"HC_THXU2/S2/I/S/Games":{"LMD52":"action"},
"HC_PLII/PLIIxMovie":{"LMD80":"action"},
"HC_PLII/PLIIxMusic":{"LMD81":"action"},
"HC_Neo6Cinema":{"LMD82":"action"},
"HC_Neo6Music":{"LMD83":"action"},
"HC_PLII/PLIIxTHXCinema":{"LMD84":"action"},
"HC_Neo6THXCinema":{"LMD85":"action"},
"HC_PLII/PLIIxGame":{"LMD86":"action"},
"HC_NeuralSurr*3":{"LMD87":"action"},
"HC_NeuralTHX/NeuralSurround":{"LMD88":"action"},
"HC_PLII/PLIIxTHXGames":{"LMD89":"action"},
"HC_Neo6/NeoXTHXGames":{"LMD8A":"action"},
"HC_PLII/PLIIxTHXMusic":{"LMD8B":"action"},
"HC_Neo6/NeoXTHXMusic":{"LMD8C":"action"},
"HC_NeuralTHXCinema":{"LMD8D":"action"},
"HC_NeuralTHXMusic":{"LMD8E":"action"},
"HC_NeuralTHXGames":{"LMD8F":"action"},
"HC_PLIIzHeight":{"LMD90":"action"},
"HC_Neo6CinemaDTSSurroundSensation":{"LMD91":"action"},
"HC_Neo6MusicDTSSurroundSensation":{"LMD92":"action"},
"HC_NeuralDigitalMusic":{"LMD93":"action"},
"HC_PLIIzHeight/THXCinema":{"LMD94":"action"},
"HC_PLIIzHeight/THXMusic":{"LMD95":"action"},
"HC_PLIIzHeight/THXGames":{"LMD96":"action"},
"HC_PLIIzHeight/THXU2/S2Cinema":{"LMD97":"action"},
"HC_PLIIzHeight/THXU2/S2Music":{"LMD98":"action"},
"HC_PLIIzHeight/THXU2/S2Games":{"LMD99":"action"},
"HC_NeoXGame":{"LMDA9A":"action"},
"HC_PLIIx/PLIIMovie/AudysseyDSX":{"LMDA0":"action"},
"HC_PLIIx/PLIIMusic/AudysseyDSX":{"LMDA1":"action"},
"HC_PLIIx/PLIIGame/AudysseyDSX":{"LMDA2":"action"},
"HC_Neo6Cinema/AudysseyDSX":{"LMDA3":"action"},
"HC_Neo6Music/AudysseyDSX":{"LMDA4":"action"},
"HC_NeuralSurround/AudysseyDSX":{"LMDA5":"action"},
"HC_NeuralDigitalMusic/AudysseyDSX":{"LMDA6":"action"},
"HC_DolbyEX/AudysseyDSX":{"LMDA7":"action"},
"HC_Up":{"LMDUP":"action"},
"HC_Down":{"LMDDOWN":"action"},
"HC_Movie":{"LMDMOVIE":"action"},
"HC_Music":{"LMDMUSIC":"action"},
"HC_Game":{"LMDGAME":"action"}
},
"Veille":{
"SleepTime 01min":{"SLP01":"action"},
Expand Down
Binary file added core/template/ressources/hcactiongameaction.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/template/ressources/hcallchstereo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/template/ressources/hcdirect.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/template/ressources/hcdolbyvirtual.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/template/ressources/hcfullmono.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/template/ressources/hcgamerpg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/template/ressources/hcmono.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/template/ressources/hcmonomovie.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/template/ressources/hcmultiplex.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/template/ressources/hcmusicalgamerock.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/template/ressources/hcorchestra.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/template/ressources/hcpureaudio.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/template/ressources/hcstereo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/template/ressources/hcstudiomix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/template/ressources/hcsurround.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/template/ressources/hctheaterdimensional.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/template/ressources/hcthx.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/template/ressources/hctvlogic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/template/ressources/hcunplugged.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed core/template/ressources/presetdolbyex2.png
Binary file not shown.
2 changes: 1 addition & 1 deletion plugin_info/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
<author>Damien LE GUILLOU</author>
<installation>Aucune</installation>
<require>1.145</require>
<version>0.9.151115</version>
<version>0.9.151117</version>
<category>multimedia</category>
</info>

0 comments on commit 3280134

Please sign in to comment.