Collections functions
General functions
Node 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 664 to 668

Definition

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

This article was last updated 21st May 2024 10:35 Europe/London time based on the source file dated 8th May 2024 18:45 Europe/London time.