conditional_format_end_with

 
          conditional_format_end_with(string $column, string $ended_with_text, string $color )  
This method changes the background color of any cells in a given column to any color you like if the values of these cells end with a given sub-string parameter.
# This method is exclusive to the commercial edition and is not supported in the community edition .

# Note

If the color is omitted, red will be used.

# Parameters

Parameter Description
$columnThe column on which you want to apply this conditional formatting method.
$ended_with_texta substring that if any cell, in the selected column, ends with, it meets the conditional formatting criteria. Therefore, it will be colored with the given $color parameter.
$colorThis color will be used to highlight the cells that meet the conditional formatting criteria.

# Returns

This method returns the calling object, so it can be chained with other methods in the ‘ReportOptions’ class

# Code Example

 
           $report = new ReportOptions(SRE_PUBLIC_REPORT);
$report->select_tables(array("weather"))
       ->select_fields(array("id", "city_id",  "date"  ,"humidity", "wind", "temprature"))
       ->conditional_format_end_with("temperature", "°C","#00ff00")
       ->set_style_name("grey");  
$engine = new CustomEngine($report);
$report_path = $engine->create_report();