public static function getAllReasonsCategories($hasAccessToReactivate = false){
        /** @var ReasonCategoryService $categoryService */
        $categoryService = ServiceManager::getServiceManager()->get(ReasonCategoryService::SERVICE_ID);

        $response = array(
            'authorize' => array(),
            'pause' => $categoryService->getIrregularities(),
            'terminate' => $categoryService->getIrregularities(),
            'report' => $categoryService->getIrregularities(),
            'print' => [],
        );
        if ($hasAccessToReactivate) {
            $response['reactivate'] = $categoryService->getIrregularities();
        }

        return $response;
    }
public static function getAllReasonsCategories($hasAccessToReactivate = false){
        /** @var ReasonCategoryService $categoryService */
        $categoryService = ServiceManager::getServiceManager()->get(ReasonCategoryService::SERVICE_ID);

        $response = array(
            'authorize' => array(),
            'pause' => $categoryService->getIrregularities(),
            'terminate' => $categoryService->getIrregularities(),
            'report' => $categoryService->getIrregularities(),
            'print' => [],
        );
        if ($hasAccessToReactivate) {
            $response['reactivate'] = $categoryService->getIrregularities();
        }

        return $response;
    }
public static function getAllReasonsCategories ( $ hasAccessToReactivate = false ) { /** @var ReasonCategoryService $categoryService */ $ categoryService = ServiceManager :: getServiceManager ( ) -> get ( ReasonCategoryService :: SERVICE_ID ) ; $ response = array ( 'authorize' => array ( ) , 'pause' => $ categoryService -> getIrregularities ( ) , 'terminate' => $ categoryService -> getIrregularities ( ) , 'report' => $ categoryService -> getIrregularities ( ) , 'print' => [ ] , ) ; if ( $ hasAccessToReactivate ) { $ response [ 'reactivate' ] = $ categoryService -> getIrregularities ( ) ; } return $ response ; }
Get the list of all available categories, sorted by action names

@param bool $hasAccessToReactivate
@return array
Get the list of all available categories sorted by action names