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


class DataMenuHausUebersichtForAussenst extends DataMenuHausUebersicht
{
  
  public $aussenst;

  
  public function __construct($pUrlParameter)
  {
    parent::__construct($pUrlParameter);
    
    $this->aussenst = $this->addfstring->getfilledStr($pUrlParameter->aussenst, '');
  }

  
  public function getdataarraybody($pZeitBereich = 'noRestrict')
  {
    $this->urlparameter->explodeSettingStream();
    $starthaus = new Gebaeude();
    $starthaus->id = $this->addfstring->getfilledStr($this->urlparameter->blid, '');
    $this->dataarraybody = $this->dbwork->getGebaeudebyAussenstLimit(
      $this->aussenst,
      $this->datensaetzeProSeite,
      $starthaus,
      ($this->addfstring->getfilledStr($this->urlparameter->browse, 'forward') == 'forward')
    );
    $this->setCountVars();
    
    $this->setStatusMessage();
  }

  
  public function getAnzahlBodyElements()
  {
    return $this->dbwork->getCountGebaeudebyAussenst($this->aussenst);
  }
}