Переглянути джерело

removed rowFunctions from TableAjax cache

Piotr Labudda 7 роки тому
батько
коміт
ca6abf1f19
1 змінених файлів з 8 додано та 8 видалено
  1. 8 8
      SE/se-lib/TableAjax.php

+ 8 - 8
SE/se-lib/TableAjax.php

@@ -91,9 +91,9 @@ class TableAjax extends ViewAjax {
 						// DBG::log([ '$this->_filterInit' => $this->_filterInit ], 'array', "TODO:BUG?:filters");
 						$this->_filterInit = $v;
 						break;
-					case '_rowFunctions':
-						$this->_rowFunctions = $v;
-						break;
+					// case '_rowFunctions':
+					// 	$this->_rowFunctions = $v;
+					// 	break;
 					default:
 
 				}
@@ -113,13 +113,13 @@ class TableAjax extends ViewAjax {
 		if (!$key) {
 			$_SESSION['TableAjax_Cache'][$this->_htmlID]['_label'] = $this->_label;
 			$_SESSION['TableAjax_Cache'][$this->_htmlID]['_filterInit'] = $this->_filterInit;
-			$_SESSION['TableAjax_Cache'][$this->_htmlID]['_rowFunctions'] = $this->_rowFunctions;
+			// $_SESSION['TableAjax_Cache'][$this->_htmlID]['_rowFunctions'] = $this->_rowFunctions;
 		} else if ($key == '_label') {
 			$_SESSION['TableAjax_Cache'][$this->_htmlID]['_label'] = $this->_label;
 		} else if ($key == '_filterInit') {
 			$_SESSION['TableAjax_Cache'][$this->_htmlID]['_filterInit'] = $this->_filterInit;
-		} else if ($key == '_rowFunctions') {
-			$_SESSION['TableAjax_Cache'][$this->_htmlID]['_rowFunctions'] = $this->_rowFunctions;
+		// } else if ($key == '_rowFunctions') {
+		// 	$_SESSION['TableAjax_Cache'][$this->_htmlID]['_rowFunctions'] = $this->_rowFunctions;
 		}
 	}
 
@@ -181,7 +181,7 @@ class TableAjax extends ViewAjax {
 				$this->_rowFunctions[$funName] = $params;
 			}
 		}
-		$this->_saveState('_rowFunctions');
+		// $this->_saveState('_rowFunctions');
 	}
 
 	public function addRowFunction($funName, $funParams = array()) {
@@ -203,7 +203,7 @@ class TableAjax extends ViewAjax {
 		else {
 			$this->_rowFunctions[$funName] = $funParams;
 		}
-		$this->_saveState('_rowFunctions');
+		// $this->_saveState('_rowFunctions');
 	}
 
 	private function _parseRowFunctions($idRecord = null, $pomin = array(), $showLabel = false) {