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


class PrivilegesKurse extends Datamodul
{
  
  public $user_id;
  
  public $tool_id;
  
  public $pattern;

  
  public function isEmpty()
  {
    return empty($this->id) && empty($this->user_id)
           && empty($this->tool_id) && empty($this->pattern);
  }

  public function getTyp($pFieldName)
  {
    switch ($pFieldName) {
      default:
        return parent::getTyp($pFieldName);
      case 'user_id':
      case 'tool_id':
        return \DatamodulVarType::TYPE_INT;
    }
  }
}