summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-02-13Add function database::checkConfig()Malf Furious1-0/+17
2017-02-13Implement function database::getInstance()Malf Furious1-2/+30
2017-02-13Add app-root(), app-path(), and similar function to globals.phpMalf Furious1-0/+34
2017-02-07Add function expectType() to table classMalf Furious2-0/+16
protected function exceptType added for use by subclasses to assert that the database object loaded is the correct type and to protect against cases like EG: passing the GUID for a group to new user(...); If a problem is detected, throw an exception.
2017-02-06Update function signatures for table classMalf Furious1-10/+10
Various function (and their usages) in the table class have been updated to be static class function.
2017-02-06Update table class tree to use static database referencesMalf Furious3-31/+27
2017-02-06Update database APIMalf Furious2-8/+25
The abstract functions of database have been made protected and their names prefixed with '_'. The database class has been given new static functions query() and esc(), which call the _query() and _esc() function from the database instance object. This change was made to address the use of db routines from static contexes. Calls like `database::get()->query()` which mix static and instance function access operators, can now be `database::query()`, and all singleton is abstracted away; the instance's destructor continues to close the db connection.
2017-02-05Purge old contentMalf Furious4-245/+0
2017-02-05Add redirect to forceful logoutMalf Furious1-0/+1
While forcing a logout, we need to also redirect to the app root.
2017-02-05Purge old contentMalf Furious5-203/+0
These classes were stubs before and lacked any implementation.
2017-02-05Add global source code fileMalf Furious1-0/+22
2017-02-05Add user classMalf Furious1-0/+183
2017-02-05Fix bug in mysql query functionMalf Furious1-1/+1
Need to remove the NULL return value from fetch_assoc() to fix usages of count($res) for determining the number of results from a MySQL query. This NULL return value is returned from mysqli's fetch_assoc() function to signal no more result rows.
2017-02-05Remove custom exception 'databasekeyexception'Malf Furious1-9/+7
Just use a generic exception in these cases. I don't want to handle these any differently, and just fall back on the main Exception() error page once we get to a UI.
2017-02-04Add agent classMalf Furious1-0/+54
2017-02-04Purge old contentMalf Furious1-139/+0
2017-02-04Fix to object class function signatureMalf Furious1-1/+1
The getOwner() function should have had a nullable return type.
2017-01-17Add helper functions to table classMalf Furious1-0/+39
2017-01-16Add object classMalf Furious1-0/+89
2017-01-15Purge old contentMalf Furious3-178/+0
2017-01-15Add mysql classMalf Furious1-0/+68
2017-01-15Reorganize examples/ directoryMalf Furious68-0/+0
2017-01-15Purge old contentMalf Furious3-246/+0
2017-01-15Add table classMalf Furious1-0/+173
2017-01-14Add database classMalf Furious1-0/+58
2017-01-14Purge old contentMalf Furious2-838/+0
2017-01-14Reinstate database schema file to working directoryMalf Furious1-0/+0
2017-01-14Reset working directory for clean Scrott implementationMalf Furious5-338/+338
2017-01-14Partial commit of initObj function -- this class needs reworked again...Malf Furious1-0/+26
2016-10-23Add mysql classMalf Furious2-0/+75
2016-10-23Add database classMalf Furious1-0/+46
2016-10-23Rename database columnMalf Furious1-1/+1
'desc' is a SQL reserved word, changing this column name to 'description'.
2016-10-23Add explaination of permissions and defaults to database schemaMalf Furious1-5/+20
2016-10-22Rework database schemaMalf Furious1-0/+188
Biggest changes include: better comments merged user and extern-user tables separate fields for different permissions (not a bitmask) added fields to mesgs table for handling attachments renamed some fields to avoid using SQL reserved words
2016-10-22Change project licensing informationMalf Furious2-0/+58
Replace use of GPLv3 with the unlicense. This is now public domain code. As per my contributor copyright waiver policy, I also include my signature of the UNLICENSE file to declare my work is public domain material.
2016-10-22Deprecate application codeMalf Furious71-1/+0
Setup to perform an iteration of development focused on a simpler implementation and eliminating redundancy in design.
2016-10-22Merge branch 'feature/core/groups' into devMalf Furious17-36/+1001
2016-09-18Move function User::rmHeadImage() to Object classMalf Furious2-11/+11
2016-09-18Add form submission handler for group settings tabMalf Furious1-0/+80
2016-09-17Finish markup for setting modal group tabMalf Furious1-9/+30
2016-09-17Add function Object::getURL()Malf Furious1-0/+8
2016-09-17Revert "Revert "Update group setting tab to use parameterized view templates""Malf Furious1-2/+5
This reverts commit cc285f5d019e5b586931a2a582374074825de947.
2016-09-17Revert "Update group setting tab to use parameterized view templates"Malf Furious1-5/+2
This reverts commit ee3b66018804b332ec2a2953a1d04b7e0beb68fa.
2016-09-17Update group setting tab to use parameterized view templatesMalf Furious1-2/+5
2016-09-17Change ownership view template into a PHP functionMalf Furious1-12/+14
2016-09-17Change permissions view template into a PHP functionMalf Furious1-50/+52
This change will allow us to use this in different contextes, even on a single page render.
2016-09-15Commit work on setting modal groups tabMalf Furious1-1/+52
I am committing this change incomplete. I'm stopping work on this particular piece to save some work overall and explore view templating using PHP features. The idea is to define this markup once in just one file, rather than having to duplicate it for each object type.
2016-09-15Add view template for transferring the owner of an objectMalf Furious1-0/+33
2016-09-14Add view template for setting object permissionsMalf Furious1-0/+80
This view template can be included from object setting tab view to display controls for adjusting object permissions.
2016-09-13Move function User::getHeadImage() to Object classMalf Furious2-8/+8
Increase the scope of this function so it may be used by groups.