Explorar o código

mv SE_Layout to UI in Table Msgs route

Piotr Labudda %!s(int64=6) %!d(string=hai) anos
pai
achega
1cd6a99641
Modificáronse 1 ficheiros con 21 adicións e 21 borrados
  1. 21 21
      SE/se-lib/Route/TableMsgs.php

+ 21 - 21
SE/se-lib/Route/TableMsgs.php

@@ -15,12 +15,12 @@ class Route_TableMsgs extends RouteBase {
 	}
 
 	public function defaultAction() {
-		SE_Layout::gora();
-		SE_Layout::menu();
+		UI::gora();
+		UI::menu();
 
 		$this->menu();
 
-		SE_Layout::dol();
+		UI::dol();
 	}
 
 	public function menu() {
@@ -38,16 +38,16 @@ class Route_TableMsgs extends RouteBase {
 		if ($idTable <= 0) throw new HttpException("Błęny numer tabeli", 400);
 		if ($idRow <= 0) throw new HttpException("Błęny numer tabeli", 400);
 
-		SE_Layout::gora();
-		SE_Layout::menu();
+		UI::gora();
+		UI::menu();
 
 		try {
 			$this->tableRowMsgs($idTable, $idRow);
 		} catch (Exception $e) {
-			SE_Layout::alert('danger', $e->getMessage() . ' #' . $e->getLine());
+			UI::alert('danger', $e->getMessage() . ' #' . $e->getLine());
 		}
 
-		SE_Layout::dol();
+		UI::dol();
 	}
 
 	public function tableRowMsgs($idTable, $idRow) {
@@ -97,7 +97,7 @@ class Route_TableMsgs extends RouteBase {
 		</small>
 	</h3>
 	<?php if ($createdId > 0) : ?>
-		<?php echo SE_Layout::alert('info', "Wysłano wiadomość nr '{$createdId}'"); ?>
+		<?php echo UI::alert('info', "Wysłano wiadomość nr '{$createdId}'"); ?>
 	<?php endif; ?>
 
 	<div>
@@ -609,18 +609,18 @@ function tblMsgsLoadMoreRows(n) {
 		if ($idTable <= 0) throw new HttpException("Błęny numer tabeli", 400);
 		if ($idRow <= 0) throw new HttpException("Błęny numer tabeli", 400);
 
-		SE_Layout::gora();
-		SE_Layout::menu();
+		UI::gora();
+		UI::menu();
 
 		try {
 			$msg = $this->_getMsg($idMsg, $idTable, $idRow);
 			$this->_markAsRead($msg);
 			$this->viewMsg($msg);
 		} catch (Exception $e) {
-			SE_Layout::alert('danger', $e->getMessage() . ' #' . $e->getLine());
+			UI::alert('danger', $e->getMessage() . ' #' . $e->getLine());
 		}
 
-		SE_Layout::dol();
+		UI::dol();
 	}
 
 	public function viewAction() {
@@ -631,17 +631,17 @@ function tblMsgsLoadMoreRows(n) {
 		if ($idTable <= 0) throw new HttpException("Błęny numer tabeli", 400);
 		if ($idRow <= 0) throw new HttpException("Błęny numer tabeli", 400);
 
-		SE_Layout::gora();
-		SE_Layout::menu();
+		UI::gora();
+		UI::menu();
 
 		try {
 			$msg = $this->_getMsg($idMsg, $idTable, $idRow);
 			$this->viewMsg($msg);
 		} catch (Exception $e) {
-			SE_Layout::alert('danger', $e->getMessage() . ' #' . $e->getLine());
+			UI::alert('danger', $e->getMessage() . ' #' . $e->getLine());
 		}
 
-		SE_Layout::dol();
+		UI::dol();
 	}
 
 	public function _getMsg($idMsg, $idTable, $idRow) {
@@ -741,16 +741,16 @@ function tblMsgsLoadMoreRows(n) {
 		if ($idTable <= 0) throw new HttpException("Błęny numer tabeli", 400);
 		if ($idRow <= 0) throw new HttpException("Błęny numer tabeli", 400);
 
-		SE_Layout::gora();
-		SE_Layout::menu();
+		UI::gora();
+		UI::menu();
 
 		try {
 			$msg = $this->_getMsg($idMsg, $idTable, $idRow);
 			$msgsRoute = Router::getRoute('Msgs');
 			$msgsRoute->removeTableRecordMsg($idMsg);
 		} catch (Exception $e) {
-			SE_Layout::alert('danger', $e->getMessage() . ' #' . $e->getLine());
-			SE_Layout::dol();
+			UI::alert('danger', $e->getMessage() . ' #' . $e->getLine());
+			UI::dol();
 			exit;
 		}
 		?>
@@ -760,7 +760,7 @@ function tblMsgsLoadMoreRows(n) {
 	</div>
 </div>
 <?php
-		SE_Layout::dol();
+		UI::dol();
 	}
 
 }