PDOCrud Table Data Formatting

  
                                $pdocrud = new PDOCrud();  
                                $pdocrud->tableColFormatting("product_name", "string",array("type" =>"uppercase"));
                                $pdocrud->tableColFormatting("product_description", "string",array("type" =>"lowercase"));
                                $pdocrud->tableColFormatting("product_image", "image");
                                $pdocrud->tableColFormatting("product_description", "readmore", array("length"=>4,"showreadmore"=>true));//not showing read more 
                                $pdocrud->tableColFormatting("product_rating", "html",array("type" =>"html","str"=>"{col-name}"));
                                $pdocrud->tableColFormatting("discount", "formula",array("type" =>"percentage"));
                                $pdocrud->tableColFormatting("qyt_available", "formula",array("type" =>"number_format","decimalpoint"=>2));
                                $pdocrud->tableColAddition("Total", "sum",array("product_price","product_sell_price"));
                                $pdocrud->tableColFormatting("qyt_available", "formula",array("type" =>"round","decimalpoint"=>2));
                                $pdocrud->tableColFormatting("product_price", "formula",array("type" =>"ceil"));
                                $pdocrud->tableColFormatting("product_sell_price", "formula",array("type" =>"floor"));
                                $pdocrud->tableDataFormatting("col", "style", array("product_price",">", "200"),array("background:#000","color:#ff0"));
                                echo $pdocrud->dbTable("producttable")->render();
                                

Deprecated: Required parameter $field follows optional parameter $op in /home/javad/domains/javadfk.ir/public_html/pdocrud/script/classes/PDOCrud.php on line 924

Deprecated: Required parameter $task follows optional parameter $op in /home/javad/domains/javadfk.ir/public_html/pdocrud/script/classes/PDOCrud.php on line 924

Deprecated: Required parameter $totalrecords follows optional parameter $page in /home/javad/domains/javadfk.ir/public_html/pdocrud/script/classes/PDOCrudHelper.php on line 191

Fatal error: Uncaught TypeError: ceil(): Argument #1 ($num) must be of type int|float, array given in /home/javad/domains/javadfk.ir/public_html/pdocrud/script/classes/PDOCrudTableFormat.php:158 Stack trace: #0 /home/javad/domains/javadfk.ir/public_html/pdocrud/script/classes/PDOCrudTableFormat.php(158): ceil() #1 /home/javad/domains/javadfk.ir/public_html/pdocrud/script/classes/PDOCrudTableFormat.php(92): PDOCrudTableFormat->formatTableColFormula() #2 /home/javad/domains/javadfk.ir/public_html/pdocrud/script/classes/PDOCrudTableFormat.php(71): PDOCrudTableFormat->formatTableColOptions() #3 /home/javad/domains/javadfk.ir/public_html/pdocrud/script/classes/PDOCrud.php(2930): PDOCrudTableFormat->formatTableCol() #4 /home/javad/domains/javadfk.ir/public_html/pdocrud/script/classes/PDOCrud.php(2677): PDOCrud->formatTableData() #5 /home/javad/domains/javadfk.ir/public_html/pdocrud/script/classes/PDOCrud.php(2176): PDOCrud->dbCRUD() #6 /home/javad/domains/javadfk.ir/public_html/pdocrud/script/classes/PDOCrud.php(2126): PDOCrud->handleOperation() #7 /home/javad/domains/javadfk.ir/public_html/pdocrud/demo/pages/table-formatting.php(56): PDOCrud->render() #8 {main} thrown in /home/javad/domains/javadfk.ir/public_html/pdocrud/script/classes/PDOCrudTableFormat.php on line 158