68 lines
3.3 KiB
PHP
68 lines
3.3 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
/**
|
|
* Calendar App
|
|
*
|
|
* @copyright 2021 Anna Larch <anna.larch@gmx.net>
|
|
*
|
|
* @author Anna Larch <anna.larch@gmx.net>
|
|
* @author Richard Steinmetz <richard@steinmetz.cloud>
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
|
|
* License as published by the Free Software Foundation; either
|
|
* version 3 of the License, or any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
|
|
*
|
|
* You should have received a copy of the GNU Affero General Public
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
*/
|
|
|
|
namespace OCA\Gestion\Service;
|
|
|
|
use OCP\IURLGenerator;
|
|
use Psr\Log\LoggerInterface;
|
|
|
|
class NavigationService {
|
|
private $urlGenerator;
|
|
|
|
public function __construct(IURLGenerator $urlGenerator) {
|
|
$this->urlGenerator = $urlGenerator;
|
|
}
|
|
|
|
public function getNavigationLink(){
|
|
return array(
|
|
"index" => $this->urlGenerator->linkToRouteAbsolute("gestion.page.index"),
|
|
"defunt" => $this->urlGenerator->linkToRouteAbsolute("gestion.page.defunt"),
|
|
"devis" => $this->urlGenerator->linkToRouteAbsolute("gestion.page.devis"),
|
|
"thanatopracteur" => $this->urlGenerator->linkToRouteAbsolute("gestion.page.thanatopracteur"),
|
|
"trajet" => $this->urlGenerator->linkToRouteAbsolute("gestion.page.trajet"),
|
|
"lieu" => $this->urlGenerator->linkToRouteAbsolute("gestion.page.lieu"),
|
|
"facture" => $this->urlGenerator->linkToRouteAbsolute("gestion.page.facture"),
|
|
"produit" => $this->urlGenerator->linkToRouteAbsolute("gestion.page.produit"),
|
|
"article" => $this->urlGenerator->linkToRouteAbsolute("gestion.page.article"),
|
|
"bibliotheque" => $this->urlGenerator->linkToRouteAbsolute("gestion.page.bibliotheque"),
|
|
"config" => $this->urlGenerator->linkToRouteAbsolute("gestion.page.config"),
|
|
"isConfig" => $this->urlGenerator->linkToRouteAbsolute("gestion.page.isConfig"),
|
|
"statistique" => $this->urlGenerator->linkToRouteAbsolute("gestion.page.statistique"),
|
|
"legalnotice" => $this->urlGenerator->linkToRouteAbsolute("gestion.page.legalnotice"),
|
|
"france" => $this->urlGenerator->linkToRouteAbsolute("gestion.page.france"),
|
|
"orders" => $this->urlGenerator->linkToRouteAbsolute("gestion.order.order"),
|
|
"thanatoProductFees" => $this->urlGenerator->linkToRouteAbsolute("gestion.order.thanatoProductFee"),
|
|
"clientGroups" => $this->urlGenerator->linkToRouteAbsolute("gestion.page.clientGroups"),
|
|
"clientGroupDiscount" => $this->urlGenerator->linkToRouteAbsolute("gestion.page.clientGroupDiscount"),
|
|
"clientGroupFacturation" => $this->urlGenerator->linkToRouteAbsolute("gestion.page.clientGroupFacturation"),
|
|
"provider" => $this->urlGenerator->linkToRouteAbsolute("gestion.provider.provider"),
|
|
"orderProduct" => $this->urlGenerator->linkToRouteAbsolute("gestion.order.orderProduct"),
|
|
"vehicle" => $this->urlGenerator->linkToRouteAbsolute("gestion.vehicle.vehicle"),
|
|
);
|
|
}
|
|
|
|
}
|