$pdo
+$pdo : \PDO+
+ + +
From 29955216d69ca08b69afe1ace71151839049c045 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Sat, 7 Feb 2015 21:06:17 +0100 Subject: Added documentation --- docs/classes/file.html | 611 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 611 insertions(+) create mode 100644 docs/classes/file.html (limited to 'docs/classes/file.html') diff --git a/docs/classes/file.html b/docs/classes/file.html new file mode 100644 index 0000000..8149070 --- /dev/null +++ b/docs/classes/file.html @@ -0,0 +1,611 @@ + + +
+ + +An interface to the file table in the database
+ + + +__construct(\PDO $pdo, integer $id)+
Create a new instance
+ + +\PDO | +$pdo | +The PDO class, to access the database |
+
integer | +$id | +The id of the file to fetch |
+
If something went wrong with the database
If the file could not be found
delete() : boolean+
Move this file to the trash and delete all records for it
+Physically, this moves the file to a trash folder +Then, the file will be removed from the file table in the database +Any appendices linking to this file with fileId will have fileId NULL +Any offers linking to this file with invoice_fileId will have invoice_fileId NULL
+ + +If there's something wrong with the database
True on success, false on failure
+ +