<?php


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


class HinterlegungAnmeldeStatus extends HinterlegungDialogBasis
{
  
  public $data;

  
  public function __construct()
  {
    parent::__construct();
    $dbwanmstatus = new DBWorkHLStatusKZ();
    $this->data = $dbwanmstatus->getAll();
  }

  
  public function GetColumnCount()
  {
    return 2;
  }

  
  public function GetColumnTitle($col)
  {
    switch ($col) {
      case 0: return 'Schl.';
      case 1: return 'Bezeichnung';
    }

    return '';
  }

  
  public function GetColumnWidth($col)
  {
    switch ($col) {
      case 0: return '20%';
      case 1: return '80%';
    }

    return '';
  }

  
  public function GetIdColumnIndices()
  {
    return array(0);
  }

  
  public function GetRowCount()
  {
    return count($this->data);
  }

  
  public function GetValueAt($row, $col)
  {
    switch ($col) {
      case 0: return $this->data[$row]->kennz;
      case 1: return $this->data[$row]->text;
    }
  }
}