1<?php
2
3/* Copyright (c) 1998-2017 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5/**
6 * Different types of behaviour for item groups
7 *
8 * @author Alex Killing <alex.killing@gmx.de>
9 * @version $Id$
10 * @ingroup ModulesItemGroup
11 */
12class ilItemGroupBehaviour
13{
14    const ALWAYS_OPEN = 0;
15    const EXPANDABLE_CLOSED = 1;
16    const EXPANDABLE_OPEN = 2;
17
18    /**
19     * Get all behaviours
20     *
21     * @return array
22     */
23    public static function getAll()
24    {
25        global $DIC;
26
27        $lng = $DIC->language();
28
29        return array(
30            self::ALWAYS_OPEN => $lng->txt("itgr_always_open"),
31            self::EXPANDABLE_CLOSED => $lng->txt("itgr_expandable_closed"),
32            self::EXPANDABLE_OPEN => $lng->txt("itgr_expandable_open")
33        );
34    }
35}
36