CategoryUtility.php 1.05 KB
Newer Older
1
<?php
2 3
namespace T3o\TerFe2\Utility;

4 5
/*
 * This file is part of the TYPO3 CMS project.
6
 *
7 8 9
 * It is free software; you can redistribute it and/or modify it under
 * the terms of the GNU General Public License, either version 2
 * of the License, or any later version.
10
 *
11 12
 * For the full copyright and license information, please read the
 * LICENSE.txt file that was distributed with this source code.
13
 *
14 15
 * The TYPO3 project - inspiring people to share!
 */
16

17 18 19
/**
 * Utilities to manage versions
 */
20
class CategoryUtility
21
{
22

23
    /** @var array The list of em categories (taken from em) */
24
    protected static $defaultCategories = [
25 26 27 28 29 30 31 32 33 34
        'be' => 0,
        'module' => 1,
        'fe' => 2,
        'plugin' => 3,
        'misc' => 4,
        'services' => 5,
        'templates' => 6,
        'doc' => 8,
        'example' => 9,
        'distribution' => 10,
35
    ];
36 37 38 39 40 41 42 43 44 45 46

    /**
     * Get the default categories
     *
     * @return array The array of categories
     */
    public static function getDefaultCategories()
    {
        return self::$defaultCategories;
    }
}