-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreports.php
More file actions
executable file
·70 lines (51 loc) · 1.25 KB
/
Copy pathreports.php
File metadata and controls
executable file
·70 lines (51 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
# Class containing reports
class reports
{
# Properties
private $settings;
private $databaseConnection;
private $baseUrl;
# Define the registry of reports; those prefixed with 'listing_' return data rather than record numbers; listings can be suffixed with a status (e.g. _info)
private $reportsList = array (
'pathlessimages_problem' => 'Images without a full, explicit path',
);
# Listing (values) reports
private $listingsList = array (
);
# Constructor
public function __construct ($modesCatalogueApi)
{
# Create main property handles
$this->settings = $modesCatalogueApi->settings;
$this->databaseConnection = $modesCatalogueApi->databaseConnection;
$this->baseUrl = $modesCatalogueApi->baseUrl;
}
# Getter for reportsList
public function getReportsList ()
{
return $this->reportsList;
}
# Getter for listingsList
public function getListingsList ()
{
return $this->listingsList;
}
# Naming report
public function report_pathlessimages ()
{
# Define the query
$query = "
SELECT
'pathlessimages' AS report,
id AS recordId
FROM records
WHERE
photographFilename IS NOT NULL
AND PhotographFilename NOT LIKE 'X:%'
";
# Return the query
return $query;
}
}
?>