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 646 to 650

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 19th March 2024 04:05 Europe/London time based on the source file dated 8th March 2024 15:10 Europe/London time.