aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/entities.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r--engine/lib/entities.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php
index 31129fbad..771627b89 100644
--- a/engine/lib/entities.php
+++ b/engine/lib/entities.php
@@ -86,6 +86,7 @@
$this->attributes['access_id'] = 0;
$this->attributes['time_created'] = "";
$this->attributes['time_updated'] = "";
+ $this->attributes['enabled'] = "";
// There now follows a bit of a hack
/* Problem: To speed things up, some objects are split over several tables, this means that it requires
@@ -674,6 +675,19 @@
}
/**
+ * Is this entity enabled?
+ *
+ * @return boolean
+ */
+ public function isEnabled()
+ {
+ if ($this->enabled)
+ return true;
+
+ return false;
+ }
+
+ /**
* Delete this entity.
*/
public function delete()