+ if (!empty($q['query']['status'])) {
+ switch ($q['query']['status']) {
+
+ case 'SUCCESS';
+ $this->is_active = 1;
+ break;
+ case 'FAILED';
+ $this->is_active = 0;
+ break;
+ case 'PENDING';
+ $this->is_active = 0;
+ break;
+ case 'ALL':
+ default:
+ break;
+ }
+ }