<?php
/**
 * @copyright (c) Kufer Software GmbH, Loisachstrasse 4, D-84453 Mühldorf
 */

namespace Kufer\KuferTools\Veranstalter\DozentenInfo\DozentenUebersicht;


class DozentenUebersichtUseCase extends \Kufer\KuferTools\Basis\DozentenInfo\DozentenUebersicht\DozentenUebersichtUseCase
{
  public function __construct($request)
  {
    parent::__construct($request);
  }

  public static function getToolSectionId()
  {
    return 652;
  }

  public static function getToolId()
  {
    return 55;
  }

  protected function getDozentenHelper()
  {
    return \Kufer\KuferTools\Utils\DatamodulHelper\DozentenHelper\DozentenHelper::createVeranstalterDozentenUebersicht($this->toolSettings, $this->getUser());
  }

  protected function isNeuerDozentAllowed()
  {
    return $this->isRechtAllowed('652.0.2');
  }

  protected function verlinkePanelHeaderAllowed()
  {
    return $this->isRechtAllowed('652.0.1') == 2
                                     && \ToolsAPI::rechteOR(array('654.1.1', '654.1.3', '654.1.4'), $this->getToolId());
  }
}