Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
Since this function is used by moveBackward(), failing to call
$this->saveObj() would result in changes made to $this being lost.
$this is now written back to the db every time and calling saveObj()
manually when using moveBackward() can result in bad data being written
to the db.
|
|
This function has been updated to construct and return the proper object
type. This commit addresses the uses of this function so far to account
for this.
|
|
|
|
Now returns the correct type of object based on the original object's
parent.
|
|
|
|
Lookup all groups a user owns or is a member of.
|
|
|
|
Added to object class, functions: setOwner, getParent, setParent.
|
|
Also updated the getOwner function to use this instead of duplicating
logic.
|
|
|
|
Functions object::addMember() and object::remMember()
|
|
Added the function to verify and update the user's password. Added the
function to confirm and update the user's email address.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
Various function (and their usages) in the table class have been updated
to be static class function.
|
|
|
|
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.
|
|
While forcing a logout, we need to also redirect to the app root.
|
|
|
|
|
|
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.
|
|
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.
|
|
|
|
The getOwner() function should have had a nullable return type.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Setup to perform an iteration of development focused on a simpler
implementation and eliminating redundancy in design.
|
|
|
|
|
|
Increase the scope of this function so it may be used by groups.
|
|
To maintain forward compatability with newer versions of PHP (and since
my dev environment is now running PHP 7), this patch is made to address
the following breaking change from PHP 5:
PHP 7 now uses an abstract syntax tree when parsing source files. This
has permitted many improvements to the language which were previously
impossible due to limitations in the parser used in earlier versions of
PHP, but has resulted in the removal of a few special cases for
consistency reasons, which has resulted in backward compatibility
breaks. Indirect access to variables, properties, and methods will now
be evaluated strictly in left-to-right order, as opposed to the previous
mix of special cases.
|
|
This function returns all groups the user either owns or is a member of.
This is not necessarily the same as all groups the user has access
permission to. The *not-yet-implemented* object explorer feature should
be used to browse those.
|
|
|