" . $input . ""; } else { return "" . "" . $input . "" . ""; } } public static function generateHTMLEnd( $filePath, $active = true ) { if ( !$active ) { return; } $file = fopen( $filePath, 'a' ); $stringData = " "; fwrite( $file, $stringData ); fclose( $file ); } public static function generateHTMLtableRow( $filePath, $id, $inputTex, $mmlMj3, $mmlGen, $bold = false, $active = true ) { if ( !$active ) { return; } $file = fopen( $filePath, 'a' ); $stringData = "" . self::generateHTMLtableItem( $id, $bold ) . self::generateHTMLtableItem( $inputTex, $bold ) . self::generateHTMLtableItem( $mmlMj3, $bold ) . self::generateHTMLtableItem( $mmlGen, $bold ) . ""; fwrite( $file, $stringData ); fclose( $file ); // tbd only open close once for all tests } public static function generateHTMLstart( $filePath, $name, $active = true ) { if ( !$active ) { return; } $file = fopen( $filePath, 'w' ); // or die("error"); $stringData = " "; fwrite( $file, $stringData ); fclose( $file ); self::generateHTMLtableRow( $filePath, "-", "Tex-Input", $name, "MathML(TexVC)", true ); } }