public function get_table_data(){ $tdata = array(); foreach($this->pids as $pid){ array_push($tdata,$this->get_row($pid)); } return $tdata; } public function get_with_error(){ return $this->with_error; } } $pivo_staatus = new worker($projects); $status_table = $pivo_staatus->get_table_data(); $with_error = $pivo_staatus->get_with_error(); $pealkiri = Array("Projekti nimi", "Viimase kande pealkiri", "Aeg", "Commiti message", "Aeg", "Acceptimata storyd"); ?> </pre> <?php if($with_error): ?> <h2>Järgmiste isikute Pivotal Trackeri projekti lugemisega tekkis probleem:</h2> <ol> <?php foreach ($with_error as $el): ?> <li><?= $el ?></li> <? endforeach ?> </ol> <?php endif ?> <table border=1>