TABLE}", 0, $_GET, 'int'))) throw new Exception("Błąd parametru"); if (!(DB::getPDO()->fetchValue("select count(*) from `{$this->TABLE}` where `ID` = {$ID}"))) throw new Exception("Nie znaleziono rekordu"); $result = ACL::getAclByNamespace("default_db/{$this->TABLE}")->buildQuery(['f_ID' => "$ID", 'limit' => 1])->getItems(); // if (!$result) $result = ACL::getAclByNamespace("default_db/{$this->TABLE}/{$this->TABLE}")->buildQuery(['f_ID' => "$ID", 'limit' => 1])->getItems(); if (!$result) throw new Exception("Brak uprawnień"); $this->OBJECT = $result[0]; switch ($this->OBJECT['A_STATUS']) { case "WAITING": $this->test(); break; case "NORMAL": $this->test(); break; case "OFF_HARD": $this->test(); break; default: $this->test(); //SE_Layout::alert('danger', "Błędny status rekordu."); } } catch (Exception $e) { SE_Layout::alert('danger', $e->getMessage()); } SE_Layout::dol(); } private function test() { echo "
"; print_r($this->OBJECT); echo ""; } }