Collections functions
General functions
Render functions
Theme permission functions
User 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 639 to 644

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 10th December 2023 16:05 Europe/London time based on the source file dated 8th December 2023 16:05 Europe/London time.