aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/entities.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-13 15:52:18 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-13 15:52:18 +0000
commitb0b84c911c200fd355b55e8b701a57baa8e62477 (patch)
treef5db015da4a56d6a6ae82c8cb5d909efd33636a3 /engine/lib/entities.php
parent4a92ecbc2d4ece4e2c2e5d0b7a7f8b2a6190a285 (diff)
downloadelgg-b0b84c911c200fd355b55e8b701a57baa8e62477.tar.gz
elgg-b0b84c911c200fd355b55e8b701a57baa8e62477.tar.bz2
Refs #237: Added option, now just needs a search listing banned users.
Depends #243 git-svn-id: https://code.elgg.org/elgg/trunk@1904 36083f99-b078-4883-b0ff-0f9b5a30f544
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()