class tableBlock {
var $table_border = '0';
var $table_width = '100%';
var $table_cellspacing = '0';
var $table_cellpadding = '2';
var $table_parameters = '';
var $table_row_parameters = '';
var $table_data_parameters = '';
var $tableBox_string = '';
function tableBlock($contents){
$form_set = false;
...
if ($form_set == true) $tableBox_string .= '</form>' . "\n";
return $tableBox_string;
}
}
Currently this generates deprecation warnings every time its called because the function name and class name match of course that is only temporary.
This class is extended by many other classes in this website, and called within other functions as: $this->tableBlock($somearray);
I've tried many ways of adding function __construct(){}
without finding a way that maintains the function "tableBlock" also. every method tried yields a fatal error "call to nonexistent function". Anyone dealt with this successfully?