Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test 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 713 to 717

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 14th December 2024 20:35 Europe/London time based on the source file dated 7th November 2024 17:40 Europe/London time.