ajout item eoe eop nineboard

This commit is contained in:
2020-06-24 11:40:43 +02:00
parent 02aa36a194
commit 4dac861b9b
3 changed files with 190 additions and 0 deletions

View File

@ -44,6 +44,8 @@ class InitDataCommand extends ContainerAwareCommand
$activate_widbalado = $this->getContainer()->getParameter('activate_widbalado');
$activate_widdokuwiki = $this->getContainer()->getParameter('activate_widdokuwiki');
$activate_wideconnect = $this->getContainer()->getParameter('activate_wideconnect');
$activate_wideoe = $this->getContainer()->getParameter('activate_wideoe');
$activate_wideop = $this->getContainer()->getParameter('activate_wideop');
$activate_widetherhome = $this->getContainer()->getParameter('activate_widetherhome');
$activate_widfluxbb = $this->getContainer()->getParameter('activate_widfluxbb');
$activate_widgepi = $this->getContainer()->getParameter('activate_widgepi');
@ -54,6 +56,7 @@ class InitDataCommand extends ContainerAwareCommand
$activate_widmindmaps = $this->getContainer()->getParameter('activate_widmindmaps');
$activate_widmoodle = $this->getContainer()->getParameter('activate_widmoodle');
$activate_widnextcloud = $this->getContainer()->getParameter('activate_widnextcloud');
$activate_widnineboard = $this->getContainer()->getParameter('activate_widnineboard');
$activate_widonlyoffice = $this->getContainer()->getParameter('activate_widonlyoffice');
$activate_widopensondage = $this->getContainer()->getParameter('activate_widopensondage');
$activate_widphpldapadmin = $this->getContainer()->getParameter('activate_widphpldapadmin');
@ -429,6 +432,50 @@ class InitDataCommand extends ContainerAwareCommand
$em->persist($entityItem);
}
// Item EOE
if($activate_wideoe) {
$wideoe_url =$this->getContainer()->getParameter('wideoe_url');
$entityItem = $em->getRepository('CadolesPortalBundle:Item')->find(-370);
if(!$entityItem) {
$entityicon = $em->getRepository('CadolesPortalBundle:Icon')->findoneby(["label"=>"uploads/icon/icon_eoe.png"]);
$entityItem = new Item();
$entityItem->setId(-370);
$entityItem->setRowOrder(0);
$entityItem->setTitle('EOE');
$entityItem->SetSubtitle("EOLE Outils Elève");
$entityItem->setIcon($entityicon);
$entityItem->setTarget("_blank");
$entityItem->setItemcategory($entityItemcategoryapp);
$entityItem->setEssential(true);
$entityItem->addGroup($groupall);
}
$entityItem->setUrl($wideoe_url);
$em->persist($entityItem);
}
// Item EOP
if($activate_wideop) {
$wideop_url =$this->getContainer()->getParameter('wideop_url');
$entityItem = $em->getRepository('CadolesPortalBundle:Item')->find(-371);
if(!$entityItem) {
$entityicon = $em->getRepository('CadolesPortalBundle:Icon')->findoneby(["label"=>"uploads/icon/icon_eop.png"]);
$entityItem = new Item();
$entityItem->setId(-371);
$entityItem->setRowOrder(0);
$entityItem->setTitle('EOP');
$entityItem->SetSubtitle("EOLE Outils Professeur");
$entityItem->setIcon($entityicon);
$entityItem->setTarget("_blank");
$entityItem->setItemcategory($entityItemcategoryapp);
$entityItem->setEssential(true);
$entityItem->addGroup($groupall);
}
$entityItem->setUrl($wideop_url);
$em->persist($entityItem);
}
// Item etherhome
if($activate_widetherhome) {
$widetherhome_url =$this->getContainer()->getParameter('widetherhome_url');
@ -649,6 +696,28 @@ class InitDataCommand extends ContainerAwareCommand
$em->persist($entityItem);
}
// Item Nineboard
if($activate_widnineboard) {
$widnineboard_url =$this->getContainer()->getParameter('widnineboard_url');
$entityItem = $em->getRepository('CadolesPortalBundle:Item')->find(-361);
if(!$entityItem) {
$entityicon = $em->getRepository('CadolesPortalBundle:Icon')->findoneby(["label"=>"uploads/icon/icon_nineboard.png"]);
$entityItem = new Item();
$entityItem->setId(-361);
$entityItem->setRowOrder(0);
$entityItem->setTitle('Nineboard');
$entityItem->SetSubtitle("Gestionnaire de tableau de bord collaboratif");
$entityItem->setIcon($entityicon);
$entityItem->setTarget("_blank");
$entityItem->setItemcategory($entityItemcategoryapp);
$entityItem->setEssential(true);
$entityItem->addGroup($groupall);
}
$entityItem->setUrl($widnineboard_url);
$em->persist($entityItem);
}
// Item Onlyoffice
if($activate_widonlyoffice) {
$widonlyoffice_url =$this->getContainer()->getParameter('widonlyoffice_url');