summaryrefslogtreecommitdiffstats
path: root/app/class/object.class.php
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2015-12-18 01:52:39 -0500
committerMalf Furious <m@lfurio.us>2015-12-18 01:52:39 -0500
commit30c2345e1567832cbaeefcf4db1e559a8a198046 (patch)
treef858c1a650e7c911ba11edfb3ff27d92492fe7cd /app/class/object.class.php
parent6bc0491af4349a03a2d9f2040f36901aa5497d0d (diff)
downloadscrott-30c2345e1567832cbaeefcf4db1e559a8a198046.tar.gz
scrott-30c2345e1567832cbaeefcf4db1e559a8a198046.zip
* 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
Diffstat (limited to '')
-rw-r--r--app/class/object.class.php4
1 files changed, 2 insertions, 2 deletions
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;