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

class HinterlegungAnwesenheitsBemerkung extends HinterlegungDefault
{
  
  public function __construct()
  {
    parent::__construct();

    $status = '';
    if (GetOperations::isDefined('status')) {
      $status = GetOperations::getVarValue('status');
    }


    $dbanwBem = new DBWorkHLKursAnwesenheitBemerkText();
    $this->data = $dbanwBem->getBemerkTexteByStatus($status);
  }

  
  public function GetValueAt($row, $column)
  {
    switch ($column) {
      case 0: return $this->data[$row]->bemerkung;
      default: return parent::GetValueAt($row, $column);
    }
  }

  
  public function GetColumnCount()
  {
    return 1;
  }

  public function GetColumnWidth($index)
  {
    return '';
  }

  
  public function GetColumnTitle($index)
  {
    switch ($index) {
      case 0: return 'Bemerkung';
      default: return parent::GetColumnTitle($index);
    }
  }
}