diff options
author | Malf Furious <m@lfurio.us> | 2018-02-07 22:41:35 -0500 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2018-02-07 22:41:35 -0500 |
commit | 0dd76669c58d1ae62d761d8f7c815b464963ca4a (patch) | |
tree | a22a44b47684d7f20305bb3b0258a01fa6edccf5 /app/class/obj.class.php | |
parent | 66aa954421c093ad54da8806e42d4ff9bba59091 (diff) | |
parent | 0bae6d4063c82c6522e3a5887bc25a2162504b69 (diff) | |
download | scrott-0dd76669c58d1ae62d761d8f7c815b464963ca4a.tar.gz scrott-0dd76669c58d1ae62d761d8f7c815b464963ca4a.zip |
Merge branch 'bug/object' into dev
Diffstat (limited to '')
-rw-r--r-- | app/class/obj.class.php (renamed from app/class/object.class.php) | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/class/object.class.php b/app/class/obj.class.php index c1ba85c..5be9ac3 100644 --- a/app/class/object.class.php +++ b/app/class/obj.class.php @@ -19,7 +19,7 @@ require_once "class/image.php"; * This is a generic database object. This is a supertype of all Scrott * datatypes and defines fields common to all of them. */ -class object extends table +class obj extends table { /* * Constants used for uploading images @@ -66,7 +66,7 @@ class object extends table */ public static function typeOf(string $guid) : string { - $obj = new object($guid); + $obj = new obj($guid); return $obj->objtype; } @@ -125,19 +125,19 @@ class object extends table * Get the parent of this object. If this object does not have a * parent, NULL will be returned. */ - public function getParent() : ?object + public function getParent() : ?obj { if (!isset($this->parent) || $this->parent == "") return NULL; - $parent = new object($this->parent); + $parent = new obj($this->parent); return new $parent->objtype($parent->guid); } /* * Update the parent of this object */ - public function setParent(object $parent) : void + public function setParent(obj $parent) : void { $this->parent = $parent->guid; $this->saveObj(); |