aboutsummaryrefslogtreecommitdiff
path: root/muamba.handlers.inc
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-10-07 17:01:22 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-10-07 17:01:22 -0300
commiteccd915b23e2ea7a1485ecceae9e89ecc2e5c3f7 (patch)
treeede7023eb76bcbb8b3ba45e3ef840a1e3dd19b43 /muamba.handlers.inc
parentf8da1aa6b4c77e839fde883e2aef244b4fe18bf8 (diff)
downloadmuamba-eccd915b23e2ea7a1485ecceae9e89ecc2e5c3f7.tar.gz
muamba-eccd915b23e2ea7a1485ecceae9e89ecc2e5c3f7.tar.bz2
Adding active, created and changed db fields
Diffstat (limited to 'muamba.handlers.inc')
-rw-r--r--muamba.handlers.inc21
1 files changed, 21 insertions, 0 deletions
diff --git a/muamba.handlers.inc b/muamba.handlers.inc
index 16c1f38..28f5753 100644
--- a/muamba.handlers.inc
+++ b/muamba.handlers.inc
@@ -30,3 +30,24 @@ class views_handler_filter_muamba_status extends views_handler_filter_in_operato
}
}
}
+
+/**
+ * Active transactions.
+ *
+ * @todo
+ */
+class views_handler_field_muamba_active extends views_handler_field_boolean {
+ /**
+ * Override parent::query() and don't alter query.
+ */
+ function query() {
+ $this->field_alias = 'muamba_active_'. $this->position;
+ }
+
+ /**
+ * Renders the field.
+ */
+ function render($values) {
+ parent::render($values);
+ }
+}