summaryrefslogtreecommitdiffstats
path: root/app/class/object.class.php (follow)
AgeCommit message (Collapse)AuthorFilesLines
2017-02-06Update table class tree to use static database referencesMalf Furious1-2/+2
2017-02-04Fix to object class function signatureMalf Furious1-1/+1
The getOwner() function should have had a nullable return type.
2017-01-16Add object classMalf Furious1-0/+89
2016-10-22Deprecate application codeMalf Furious1-640/+0
Setup to perform an iteration of development focused on a simpler implementation and eliminating redundancy in design.
2016-09-18Move function User::rmHeadImage() to Object classMalf Furious1-0/+11
2016-09-17Add function Object::getURL()Malf Furious1-0/+8
2016-09-13Move function User::getHeadImage() to Object classMalf Furious1-0/+8
Increase the scope of this function so it may be used by groups.
2016-06-10Fix typoMalf Furious1-1/+1
2016-06-10Add functions to Object class to determine user permissionsMalf Furious1-0/+313
Added a variety of functions to the Object base class for testing a user's access level to another object. Also added functions to test whether a given user or group is an owner or member of another object.
2016-06-08Add function Object::getOwner()Malf Furious1-0/+12
Added object function to get the owner of an object. This base-class function returns a User object, however a user might not always be the kind of owner (eg: a group can own a pad). In these situations, Object sub-classes should override this function and return the appropriate type of object.
2016-06-08Add function Object::getMembers()Malf Furious1-0/+16
Added object function to get an array of all its members. These will always be user objects, so this is always a safe function to call.
2016-06-01Add function Group::createNewGroup()Malf Furious1-0/+2
This function will initialize a new group object and write it to the database, with a given group name and owner user.
2016-05-26Add copyright notice to Scrott class filesMalf Furious1-0/+14
2016-03-01Add garbage collection logic to Object::delObj()Malf Furious1-0/+8
Now, on deletion of objects, all refs to it are purged from the xref tables, obj_member and msg_read
2016-01-30Update app source of entropy for creating random blobsMalf Furious1-2/+9
Removed use of PHP's rand() functon in favor of openssl extension's openssl_random_pseudo_bytes() to create blobs with better entropy. Created function getBlob (from class Object) to get a sha256 hash created from randomness for use as object GUIDs, password salts, application tokens, etc.
2016-01-30Handle object timestamps automatically in Object::saveObj()Malf Furious1-0/+14
The saveObj() function now initializes and update the timeCreated and timeUpdated fields of objects on its own. A new function, getCurrentTimestamp() (from class Object) is introduced to aid simpler fetching of the date and time
2015-12-18+ Added DBObject class -- A non-abstract version of Object classMalf Furious1-0/+15
2015-12-18* now using rand() instead of random_bytes for numbersMalf Furious1-1/+1
2015-12-18+ Implemented Object::getNewGUID function for Object classMalf Furious1-0/+15
2015-12-18+ Added function "isGUID" to object class for checking whether GUIDs existMalf Furious1-0/+17
2015-12-18* Defined some default values for function parameters for object class -- ↵Malf Furious1-2/+2
planning to make a class "RawObject" so that objects may be created in a polymorphic way
2015-12-18+ Added delObj function to object classMalf Furious1-0/+17
2015-12-18+ Added saveObj function to Object classMalf Furious1-1/+93
2015-12-17+ Added abstract base class for Scrott database objects (implemented ↵Malf Furious1-0/+71
constructor and loadObj functions)