Collections functions
General functions
Render functions
Theme permission functions
Resource functions

report_has_date_by_id()

Description

Checks for the presence of date placeholders in a report's sql query using the report's id.

Parameters

ColumnTypeDefaultDescription
$report int Report id of the report to retrieve the query data from the report table.

Return

boolean Returns true if a date placeholder was found else false.

Location

include/reporting_functions.php lines 603 to 608

Definition

 
function report_has_date_by_id(int $report)
    {
    
$query ps_value("SELECT `query` as value FROM report WHERE ref = ?", array("i",$report), 0);
    
$result report_has_date($query);
    return 
$result;
    }

This article was last updated 26th June 2022 05:05 Europe/London time based on the source file dated 23rd June 2022 15:55 Europe/London time.