constructors are named __construct for php8
[plewww.git] / plekit / php / table2.php
index d37acb8..d3b6849 100644 (file)
@@ -61,7 +61,7 @@ class PlekitTable {
   // internal
   var $has_tfoot;
 
-  function PlekitTable ($table_id,$headers,$sort_column,$options=NULL) {
+  function __construct ($table_id,$headers,$sort_column,$options=NULL) {
     $this->table_id = $table_id;
     $this->headers = $headers;
     $this->sort_column = $sort_column;
@@ -78,7 +78,7 @@ class PlekitTable {
     $this->max_pages = 10;
     $this->notes = array();
     $this->debug = false;
-    $this->configurable = true;
+    $this->configurable = false;
 
     $this->set_options ($options);
 
@@ -145,7 +145,7 @@ class PlekitTable {
 //a hidden column to store the node_id (used for the dynamic update of column data but not sure if
 //it is necessary)
 if ($this->configurable)
-      print ("<th class=\"plekit_table\" style=\"display:none\">nodeid</th>\n");
+      print ("<th class=\"plekit_table\" style=\"display:none\">hiddenID</th>\n");
 
     foreach ($this->headers as $label => $colspec) {
       // which form is being used