<?php

namespace modules\subusers\permissions;

use modules\subusers\classes\subusers_permission_nodes;
use modules\subusers\helpers\subusers_permission_node_key;
use modules\subusers\helpers\subusers_permission_type;

class subusers_permission_nodes_bookings extends subusers_permission_nodes
{
    public function __construct()
    {
        parent::__construct(
            'Bookinger',
            'Tilladelser til håndtering af bookinger'
        );

        $this->addNode(subusers_permission_node_key::BOOKINGS_LIST, 'Vis bookinger', 'Giver brugeren mulighed for at se listen over bookinger', subusers_permission_type::VIEW, false);
        $this->addNode(subusers_permission_node_key::BOOKINGS_EDIT, 'Rediger bookinger', 'Giver brugeren mulighed for at redigere eksisterende bookinger', subusers_permission_type::EDIT, false);
        $this->addNode(subusers_permission_node_key::BOOKINGS_DELETE, 'Slet bookinger', 'Giver brugeren mulighed for at slette eksisterende bookinger', subusers_permission_type::DELETE, false);
        $this->addNode(subusers_permission_node_key::BOOKINGS_ADD, 'Tilføj bookinger', 'Giver brugeren mulighed for at tilføje nye bookinger', subusers_permission_type::ADD, false);
    }
}