summaryrefslogtreecommitdiffstats
path: root/app/class
diff options
context:
space:
mode:
Diffstat (limited to 'app/class')
-rw-r--r--app/class/object.class.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/class/object.class.php b/app/class/object.class.php
index c1ba85c..5be9ac3 100644
--- a/app/class/object.class.php
+++ b/app/class/object.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();