<?php
namespace Modules\Catalogue\MenuContextuel;

use Entity\Model\CFormats;
use Helpers\Ariane\Ariane;
use Helpers\Outil\MenuContextuel;
use Helpers\QueryBuilder\AbsRepository;
use Skeleton\Controller\Controller;

class CatalogueMenuContextuel extends MenuContextuel
{
    /**
     * @param array<mixed> $catalogue
     * @return array<mixed>
     */
    public function global($catalogue)
    {
        $id = $catalogue['ID_CATAL'];

        $menuContextuel['listeSecondaire'][] = [
            'libelle' => $this->trad->t('Contenu'),
            'lien' => $this->router->generateUri('Catalogue.ControleVersion.listeArticles', ['idVersion' => $catalogue['IDATACATA']]),
        ];

        $menuContextuel['listeSecondaire'][] = [
            'libelle' => $this->trad->t('Catalogue'),
            'lien' => $this->router->generateUri('Catalogue.VersionCataExterne.gestionVersion', ['idCatalogue' => $catalogue['ID_CATAL']]),
        ];

        $menuContextuel['listeSecondaire'][] = [
            'libelle' => $this->trad->t('Affectation des types d\'articles'),
            'lien' => $this->router->generateUri('Catalogue.AffectationTypeArticle.parArticle', ['idVersion' => $catalogue['IDATACATA']]),
        ];

        return $menuContextuel;
    }
}
