From 30c2345e1567832cbaeefcf4db1e559a8a198046 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Fri, 18 Dec 2015 01:52:39 -0500 Subject: * Defined some default values for function parameters for object class -- planning to make a class "RawObject" so that objects may be created in a polymorphic way --- app/class/object.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/class/object.class.php') diff --git a/app/class/object.class.php b/app/class/object.class.php index 7f73382..3622d6a 100644 --- a/app/class/object.class.php +++ b/app/class/object.class.php @@ -10,7 +10,7 @@ abstract class Object extends Framework /* * Constructor */ - function __construct($childTable, $childCols) + function __construct($childTable = "object", $childCols = null) { $this->db = $this->getDbConnection(); @@ -39,7 +39,7 @@ abstract class Object extends Framework /* * Populate this object with data from the DB with a given GUID */ - function loadObj($guid) + function loadObj($guid = null) { if (is_null($guid)) return; -- cgit v1.2.3