creation item nineschool ninesurvey piwigo
This commit is contained in:
@ -60,9 +60,12 @@ class InitDataCommand extends ContainerAwareCommand
|
||||
$activate_widmoodle = $this->getContainer()->getParameter('activate_widmoodle');
|
||||
$activate_widnextcloud = $this->getContainer()->getParameter('activate_widnextcloud');
|
||||
$activate_widnineboard = $this->getContainer()->getParameter('activate_widnineboard');
|
||||
$activate_widnineschool = $this->getContainer()->getParameter('activate_widnineschool');
|
||||
$activate_widninesurvey = $this->getContainer()->getParameter('activate_widninesurvey');
|
||||
$activate_widonlyoffice = $this->getContainer()->getParameter('activate_widonlyoffice');
|
||||
$activate_widopensondage = $this->getContainer()->getParameter('activate_widopensondage');
|
||||
$activate_widphpldapadmin = $this->getContainer()->getParameter('activate_widphpldapadmin');
|
||||
$activate_widpiwigo = $this->getContainer()->getParameter('activate_widpiwigo');
|
||||
$activate_widpiwik = $this->getContainer()->getParameter('activate_widpiwik');
|
||||
$activate_widroundcube = $this->getContainer()->getParameter('activate_widroundcube');
|
||||
$activate_widsacoche = $this->getContainer()->getParameter('activate_widsacoche');
|
||||
@ -784,6 +787,50 @@ class InitDataCommand extends ContainerAwareCommand
|
||||
$em->persist($entityItem);
|
||||
}
|
||||
|
||||
// Item Nineschool
|
||||
if($activate_widnineschool) {
|
||||
$widnineschool_url =$this->getContainer()->getParameter('widnineschool_url');
|
||||
$entityItem = $em->getRepository('CadolesPortalBundle:Item')->find(-1001);
|
||||
if(!$entityItem) {
|
||||
$entityicon = $em->getRepository('CadolesPortalBundle:Icon')->findoneby(["label"=>"uploads/icon/icon_nineschool.png"]);
|
||||
|
||||
$entityItem = new Item();
|
||||
$entityItem->setId(-1001);
|
||||
$entityItem->setRowOrder(0);
|
||||
$entityItem->setTitle('Nineschool');
|
||||
$entityItem->SetSubtitle("Gestionnaire d'activités scolaire'");
|
||||
$entityItem->setIcon($entityicon);
|
||||
$entityItem->setTarget("_blank");
|
||||
$entityItem->setItemcategory($entityItemcategoryapp);
|
||||
$entityItem->setEssential(true);
|
||||
$entityItem->addGroup($groupall);
|
||||
}
|
||||
$entityItem->setUrl($widnineschool_url);
|
||||
$em->persist($entityItem);
|
||||
}
|
||||
|
||||
// Item Ninesurvey
|
||||
if($activate_widninesurvey) {
|
||||
$widninesurvey_url =$this->getContainer()->getParameter('widninesurvey_url');
|
||||
$entityItem = $em->getRepository('CadolesPortalBundle:Item')->find(-1002);
|
||||
if(!$entityItem) {
|
||||
$entityicon = $em->getRepository('CadolesPortalBundle:Icon')->findoneby(["label"=>"uploads/icon/icon_ninesurvey.png"]);
|
||||
|
||||
$entityItem = new Item();
|
||||
$entityItem->setId(-1002);
|
||||
$entityItem->setRowOrder(0);
|
||||
$entityItem->setTitle('Ninesurvey');
|
||||
$entityItem->SetSubtitle("Application de Sondage par Date");
|
||||
$entityItem->setIcon($entityicon);
|
||||
$entityItem->setTarget("_blank");
|
||||
$entityItem->setItemcategory($entityItemcategoryapp);
|
||||
$entityItem->setEssential(true);
|
||||
$entityItem->addGroup($groupall);
|
||||
}
|
||||
$entityItem->setUrl($widninesurvey_url);
|
||||
$em->persist($entityItem);
|
||||
}
|
||||
|
||||
// Item Onlyoffice
|
||||
if($activate_widonlyoffice) {
|
||||
$widonlyoffice_url =$this->getContainer()->getParameter('widonlyoffice_url');
|
||||
@ -850,6 +897,28 @@ class InitDataCommand extends ContainerAwareCommand
|
||||
$em->persist($entityItem);
|
||||
}
|
||||
|
||||
// Item piwigo
|
||||
if($activate_widpiwigo) {
|
||||
$widpiwigo_url =$this->getContainer()->getParameter('widpiwigo_url');
|
||||
$entityItem = $em->getRepository('CadolesPortalBundle:Item')->find(-396);
|
||||
if(!$entityItem) {
|
||||
$entityicon = $em->getRepository('CadolesPortalBundle:Icon')->findoneby(["label"=>"uploads/icon/icon_piwigo.png"]);
|
||||
|
||||
$entityItem = new Item();
|
||||
$entityItem->setId(-396);
|
||||
$entityItem->setRowOrder(0);
|
||||
$entityItem->setTitle('Piwigo');
|
||||
$entityItem->SetSubtitle("Gestionnaire d’albums photos");
|
||||
$entityItem->setIcon($entityicon);
|
||||
$entityItem->setTarget("_blank");
|
||||
$entityItem->setItemcategory($entityItemcategoryapp);
|
||||
$entityItem->setEssential(true);
|
||||
$entityItem->addGroup($groupall);
|
||||
}
|
||||
$entityItem->setUrl($widpiwigo_url);
|
||||
$em->persist($entityItem);
|
||||
}
|
||||
|
||||
// Item Piwik
|
||||
if($activate_widpiwik) {
|
||||
$widpiwik_url =$this->getContainer()->getParameter('widpiwik_url');
|
||||
|
Reference in New Issue
Block a user