HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers84/zuiderbos.nl/workbench/komma/kms/src/Komma/Kms/Faq/FaqSection.php
<?php
/**
 * Short description for the file.
 *
 * @author      Komma <info@komma.pro>
 * @copyright   (c) 2012-2015, Komma Mediadesign
 */

namespace Komma\Kms\Faq;

use Komma\Kms\Core\Kms;
use Komma\Kms\Core\Sections\KmsSectionTabs;
use Komma\Kms\Core\Sections\KmsSection;

class FaqSection extends KmsSection
{
    protected $title = "Faq";
    protected $subTitle = "";
    protected $slug = "faq";

    public $showSave = [0,1,2];         // Options: 'all' | 'admin' (SuperAdmin only) | 'none' (or anything else what isn't all or admin)
    public $showDelete = [0,1,2];
    public $showCreate = [0,1,2];

    protected $entityAttributesData = [
        // Calender Attributes
        'active' => [
            'type' => 'Komma\Kms\Core\Attributes\KmsOnOff',
            'options' => [
                'label' => 'Actief',
                'placeholder' => 1
            ],
        ],

        'name' => [
            'type' => 'Komma\Kms\Core\Attributes\KmsTextField',
            'forEach' => 'AllLanguages',
            'options' => [
                'label' => 'Vraag',
                'placeholder' => 'Bv. Hoe meld ik mijn kind ziek?',
            ],
        ],

        'description' => [
            'type' => 'Komma\Kms\Core\Attributes\KmsTextEditor',
            'forEach' => 'AllLanguages',
            'options' => [
                'label' => 'Omschrijving',
                'placeholder' => 'Omschrijving',
            ]
        ],

        'schools' => [
            'type' => 'Komma\Kms\Core\Attributes\KmsCheckboxes',
            'options' => [
                'label' => 'Scholen',
                'data' => 'Komma\Kms\Schools\SchoolService@getSchoolsForCheckboxesWithGlobal',
            ],
        ]


    ];

    function __construct(
        Kms $kms,
        FaqRepository $repository,
        KmsSectionTabs $tabs)
    {
        parent::__construct($kms, $repository, $tabs);
    }
}