Explorar el Código

add test TableMsgs

Piotr Labudda hace 10 años
padre
commit
ce2165c584
Se han modificado 1 ficheros con 39 adiciones y 0 borrados
  1. 39 0
      SE/se-lib/TableMsgs.php

+ 39 - 0
SE/se-lib/TableMsgs.php

@@ -0,0 +1,39 @@
+<?php
+
+Lib::loadClass('RouteBase');
+
+class Route_TableMsgs extends RouteBase {
+
+	public function handleAuth() {
+		if (!User::logged()) {
+			User::authByRequest();
+		}
+	}
+
+	public function defaultAction() {
+		SE_Layout::gora();
+		SE_Layout::menu();
+
+		$this->menu();
+
+		SE_Layout::dol();
+	}
+
+	public function menu() {
+		$usrLogin = User::getLogin();
+		$selectedLogin = $this->getSelectedLogin();
+?>
+<ul>
+	<li>TODO: ...</li>
+</ul>
+<?php
+	}
+
+	public function tableRowAction() {
+		$idTable = V::get('idTable', 0, $_REQUEST, 'int');
+		$idRow = V::get('idRow', 0, $_REQUEST, 'int');
+		if ($idTable <= 0) throw new HttpException("Błęny numer tabeli", 400);
+		if ($idRow <= 0) throw new HttpException("Błęny numer tabeli", 400);
+	}
+
+}