public function getModuleNameFromId($appId)
    {
        if (null === $this->moduleNames) {
            $translator = $this->translator;
            $this->moduleNames = [
                '0' => $translator->trans('admin::monitor: module inconnu'),
                '1' => $translator->trans('admin::monitor: module production'),
                '2' => $translator->trans('admin::monitor: module client'),
                '3' => $translator->trans('admin::monitor: module admin'),
                '4' => $translator->trans('admin::monitor: module report'),
                '5' => $translator->trans('admin::monitor: module thesaurus'),
                '6' => $translator->trans('admin::monitor: module comparateur'),
                '7' => $translator->trans('admin::monitor: module validation'),
                '8' => $translator->trans('admin::monitor: module upload'),
            ];
        }

        return isset($this->moduleNames[$appId]) ? $this->moduleNames[$appId] : null;
    }
public function getModuleNameFromId($appId)
    {
        if (null === $this->moduleNames) {
            $translator = $this->translator;
            $this->moduleNames = [
                '0' => $translator->trans('admin::monitor: module inconnu'),
                '1' => $translator->trans('admin::monitor: module production'),
                '2' => $translator->trans('admin::monitor: module client'),
                '3' => $translator->trans('admin::monitor: module admin'),
                '4' => $translator->trans('admin::monitor: module report'),
                '5' => $translator->trans('admin::monitor: module thesaurus'),
                '6' => $translator->trans('admin::monitor: module comparateur'),
                '7' => $translator->trans('admin::monitor: module validation'),
                '8' => $translator->trans('admin::monitor: module upload'),
            ];
        }

        return isset($this->moduleNames[$appId]) ? $this->moduleNames[$appId] : null;
    }
public function getModuleNameFromId ( $ appId ) { if ( null === $ this -> moduleNames ) { $ translator = $ this -> translator ; $ this -> moduleNames = [ '0' => $ translator -> trans ( 'admin::monitor: module inconnu' ) , '1' => $ translator -> trans ( 'admin::monitor: module production' ) , '2' => $ translator -> trans ( 'admin::monitor: module client' ) , '3' => $ translator -> trans ( 'admin::monitor: module admin' ) , '4' => $ translator -> trans ( 'admin::monitor: module report' ) , '5' => $ translator -> trans ( 'admin::monitor: module thesaurus' ) , '6' => $ translator -> trans ( 'admin::monitor: module comparateur' ) , '7' => $ translator -> trans ( 'admin::monitor: module validation' ) , '8' => $ translator -> trans ( 'admin::monitor: module upload' ) , ] ; } return isset ( $ this -> moduleNames [ $ appId ] ) ? $ this -> moduleNames [ $ appId ] : null ; }
Return module name according to its ID

@param  integer $appId
@return string
Return module name according to its ID