<?php
namespace DynCom\mysyde\common\classes;
/**
 * Class CollectionTypes
 * @package DynCom\mysyde\common\classes
 */
class CollectionTypes {

    private static $collectionTypes = NULL;

    /**
     * CollectionTypes constructor.
     */
    private function __construct() {
    }

    /**
     * @return array|null
     */
    public static function get() {
        if (self::$collectionTypes === NULL) {
            $translation = \DynCom\mysyde\common\classes\Registry::get('translation');

            self::$collectionTypes = array(
                1 => array( // Text
                    'description' => $translation->get("text"),
                    'class'       => 'inhalt_text',
                    'code'        => 'textcontent'
                ),

                2 => array( // Textarea
                    'description' => $translation->get("textarea"),
                    'class'       => 'inhalt_slideshow',
                    'code'        => 'textarea'
                ),

                6 => array( // DropDown
                    'description' => $translation->get("optionfield"),
                    'class'       => 'inhalt_slideshow',
                    'code'        => 'dropdown'
                ),

                7 => array( // Checkbox
                    'description' => $translation->get("checkbox"),
                    'class'       => 'inhalt_slideshow',
                    'code'        => 'checkbox'
                ),

                3 => array( // Datum
                    'description' => $translation->get("date"),
                    'class'       => 'inhalt_contact',
                    'code'        => 'date'
                ),

                4 => array( // Link
                    'description' => $translation->get("link"),
                    'class'       => 'inhalt_accordion',
                    'code'        => 'link'
                ),

                5 => array( // Bild
                    'description' => $translation->get("image"),
                    'class'       => 'inhalt_files',
                    'code'        => 'image'
                ),

                8 => array( // Icon Dropdown
                    'description' => $translation->get("icon"),
                    'class'       => 'inhalt_slideshow',
                    'code'        => 'icon'
                ),

                9 => array( // Contact Dropdown
                    'description' => $translation->get("contact"),
                    'class'       => 'inhalt_text',
                    'code'        => 'contact'
                ),

                10 => array( // Uhrzeit
                    'description' => $translation->get("time"),
                    'class'       => 'inhalt_contact',
                    'code'        => 'time'
                ),
            );
        }

        return self::$collectionTypes;
    }
}