Przeglądaj źródła

rm public from function

Piotr Labudda 6 lat temu
rodzic
commit
1977fcd408
1 zmienionych plików z 19 dodań i 19 usunięć
  1. 19 19
      SE/se-lib/Route/TableMsgs.php

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

@@ -8,13 +8,13 @@ class Route_TableMsgs extends RouteBase {
 
 	var $_listLimit = 20;
 
-	public function handleAuth() {
+	function handleAuth() {
 		if (!User::logged()) {
 			User::authByRequest();
 		}
 	}
 
-	public function defaultAction() {
+	function defaultAction() {
 		UI::gora();
 		UI::menu();
 
@@ -23,7 +23,7 @@ class Route_TableMsgs extends RouteBase {
 		UI::dol();
 	}
 
-	public function menu() {
+	function menu() {
 		$usrLogin = User::getLogin();
 ?>
 <ul>
@@ -32,7 +32,7 @@ class Route_TableMsgs extends RouteBase {
 <?php
 	}
 
-	public function tableRowAction() {
+	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);
@@ -50,7 +50,7 @@ class Route_TableMsgs extends RouteBase {
 		UI::dol();
 	}
 
-	public function tableRowMsgs($idTable, $idRow) {
+	function tableRowMsgs($idTable, $idRow) {
 		$tblAcl = User::getAcl()->getTableAcl($idTable);
 		$tableName = $tblAcl->getName();
 		$record = $tblAcl->getItem($idRow);
@@ -250,7 +250,7 @@ function tblMsgsLoadMoreRows(n) {
 		//throw new Exception("TODO: ...");
 	}
 
-	public function loadMoreRowsAction() {
+	function loadMoreRowsAction() {
 		$tableName = V::get('tableName', '', $_GET, 'word');
 		$idRow = V::get('idRow', 0, $_GET, 'int');
 		$lastMsgId = V::get('lastMsgId', 0, $_GET, 'int');
@@ -266,7 +266,7 @@ function tblMsgsLoadMoreRows(n) {
 		echo json_encode($resultData);
 	}
 
-	public function _printTableMsgsList($listType, $msgsList, $idTable, $idRow) {
+	function _printTableMsgsList($listType, $msgsList, $idTable, $idRow) {
 		$msgsTotal = count($msgsList);
 		$listLimit = $this->_listLimit;
 		$lastMsgId = 0;
@@ -346,7 +346,7 @@ function tblMsgsLoadMoreRows(n) {
 <?php
 	}
 
-	public function getMsgs($filterType, $tableName, $idRow, $lastMsgId = null) {
+	function getMsgs($filterType, $tableName, $idRow, $lastMsgId = null) {
 		$lastMsgId = (int)$lastMsgId;
 		$msgsRoute = Router::getRoute('Msgs');
 		$msgsList = array();
@@ -408,7 +408,7 @@ function tblMsgsLoadMoreRows(n) {
 		}, $rawMsgs);
 	}
 
-	public function _validate($args) {
+	function _validate($args) {
 		$toType = V::get('to_type', '', $args);
 		$to = V::get('to', '', $args);
 		$msg = V::get('msg', '', $args);
@@ -423,7 +423,7 @@ function tblMsgsLoadMoreRows(n) {
 		}
 	}
 
-	public function _create($args, $tableName, $idRow) {
+	function _create($args, $tableName, $idRow) {
 		$toType = V::get('to_type', '', $args);
 		$to = V::get('to', '', $args);
 		$msg = V::get('msg', '', $args);
@@ -452,7 +452,7 @@ function tblMsgsLoadMoreRows(n) {
 		return $createdId;
 	}
 
-	public function _printMsgForm($args) {
+	function _printMsgForm($args) {
 		$toType = V::get('to_type', '', $args);
 		$to = V::get('to', '', $args);
 		$msg = V::get('msg', '', $args);
@@ -544,7 +544,7 @@ function tblMsgsLoadMoreRows(n) {
 <?php
 	}
 
-	public function typeSpecialUserLoginAction() {
+	function typeSpecialUserLoginAction() {
 		header("Content-type: application/json");
 		$typeSpecialUserId = TypespecialVariable::getInstance(-1, '__USER_LOGIN');
 		if (!$typeSpecialUserId) {
@@ -571,7 +571,7 @@ function tblMsgsLoadMoreRows(n) {
 		echo json_encode($jsonData);
 	}
 
-	public function typeSpecialGroupIdAction() {
+	function typeSpecialGroupIdAction() {
 		header("Content-type: application/json");
 		Lib::loadClass('TypespecialVariable');
 		$typeSpecialZasob = TypespecialVariable::getInstance(-1, '__ZASOB');
@@ -601,7 +601,7 @@ function tblMsgsLoadMoreRows(n) {
 		echo json_encode($jsonData);
 	}
 
-	public function readAction() {
+	function readAction() {
 		$idMsg = V::get('id', 0, $_GET, 'int');
 		$idTable = V::get('idTable', 0, $_REQUEST, 'int');
 		$idRow = V::get('idRow', 0, $_REQUEST, 'int');
@@ -623,7 +623,7 @@ function tblMsgsLoadMoreRows(n) {
 		UI::dol();
 	}
 
-	public function viewAction() {
+	function viewAction() {
 		$idMsg = V::get('id', 0, $_GET, 'int');
 		$idTable = V::get('idTable', 0, $_REQUEST, 'int');
 		$idRow = V::get('idRow', 0, $_REQUEST, 'int');
@@ -644,7 +644,7 @@ function tblMsgsLoadMoreRows(n) {
 		UI::dol();
 	}
 
-	public function _getMsg($idMsg, $idTable, $idRow) {
+	function _getMsg($idMsg, $idTable, $idRow) {
 		$msgsRoute = Router::getRoute('Msgs');
 		$msg['_raw'] = $msgsRoute->getMessage($idMsg);
 		if (!$msg['_raw']) throw new HttpException("Wiadomość nie istnieje!", 404);
@@ -667,7 +667,7 @@ function tblMsgsLoadMoreRows(n) {
 		return $msg;
 	}
 
-	public function _markAsRead($msg) {
+	function _markAsRead($msg) {
 		if ($msg['_read']) return;
 
 		$usrLogin = User::getLogin();
@@ -695,7 +695,7 @@ function tblMsgsLoadMoreRows(n) {
 		if (!$res || $db->has_errors()) throw new Exception("Wystąpiły błędy podczas próby zapisu wiadomości: " . implode("\n<br>", $db->get_errors()));
 	}
 
-	public function viewMsg($msg) {
+	function viewMsg($msg) {
 		$usrLogin = User::getLogin();
 		$idTable = 0;
 		if (!empty($msg['tblName'])) {
@@ -733,7 +733,7 @@ function tblMsgsLoadMoreRows(n) {
 <?php
 	}
 
-	public function removeMsgAction() {
+	function removeMsgAction() {
 		$idMsg = V::get('id', 0, $_GET, 'int');
 		$idTable = V::get('idTable', 0, $_REQUEST, 'int');
 		$idRow = V::get('idRow', 0, $_REQUEST, 'int');