Permalink
Browse files

Adding uncommitted files

  • Loading branch information...
1 parent 5618fec commit 58e422606ac16da0bb5c7f95c874e0bd562919ba @kwcoffman kwcoffman committed Mar 20, 2012
@@ -0,0 +1,22 @@
+<?php
+/**
+ * @file
+ * A handler to provide filtering of views by badge state
+ *
+ * @author
+ * Kevin Coffman
+ *
+ * @ingroup views_field_handlers
+ */
+class views_handler_filter_open_badges_badge_state extends views_handler_filter_in_operator {
+
+ function get_value_options() {
+ $this->value_options = array(
+ '1' => t('The badge has been earned'),
+ '2' => t('The badge has been baked'),
+ '3' => t('The badge has been baked and shared with OBI'),
+ '4' => t('This state is currently unused'),
+ '5' => t('The badge has been revoked'),
+ );
+ }
+}
@@ -0,0 +1,20 @@
+<?php
+/**
+ * @file
+ * A handler to provide filtering of views by user decision
+ *
+ * @author
+ * Kevin Coffman
+ *
+ * @ingroup views_field_handlers
+ */
+class views_handler_filter_open_badges_user_decision extends views_handler_filter_in_operator {
+
+ function get_value_options() {
+ $this->value_options = array(
+ '0' => t('No choice has been made'),
+ '1' => t('NO'),
+ '2' => t('YES'),
+ );
+ }
+}

0 comments on commit 58e4226

Please sign in to comment.