Changeset 1971312
- Timestamp:
- 11/09/2018 05:01:08 AM (7 years ago)
- Location:
- echoza/trunk/includes/classes
- Files:
-
- 2 edited
-
echoza-handler.php (modified) (1 diff)
-
echoza.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
echoza/trunk/includes/classes/echoza-handler.php
r1970351 r1971312 56 56 $body['type'] = 'error'; 57 57 58 $body['priority'] = 'medium'; 59 58 60 return $body; 59 61 } -
echoza/trunk/includes/classes/echoza.php
r1970351 r1971312 4 4 class Echoza { 5 5 6 public static function error($title, $custom_data = [], $echo_slug = 'error') { 6 private $UserDetails; 7 8 public static function setUser($data) { 9 10 $this->UserDetails = $data; 11 } 12 13 public static function error($title, $customdata = [], $echo_slug = 'error', $priority = 'high') { 7 14 8 15 $body = []; … … 18 25 $body['type'] = 'error'; 19 26 27 $body['priority'] = $priority; 28 29 $body['user'] = $this->UserDetails; 30 20 31 EchozaHandler::sendData($body); 32 33 $this->UserDetails = NULL; 21 34 } 22 35 23 public static function info($title, $custom _data = [], $echo_slug = 'info') {36 public static function info($title, $customdata = [], $echo_slug = 'info', $priority = 'medium') { 24 37 25 38 $body = []; … … 35 48 $body['type'] = 'info'; 36 49 50 $body['priority'] = $priority; 51 52 $body['user'] = $this->UserDetails; 53 37 54 EchozaHandler::sendData($body); 55 56 $this->UserDetails = NULL; 38 57 } 39 58 … … 57 76 $body['type'] = "exception"; 58 77 59 var_dump($body); 78 $body['priority'] = 'high'; 79 80 $body['user'] = $this->UserDetails; 60 81 61 82 EchozaHandler::sendData($body); 83 84 $this->UserDetails = NULL; 62 85 } 63 86 … … 80 103 $body['type'] = 'error'; 81 104 105 $body['priority'] = 'high'; 106 107 $body['user'] = $this->UserDetails; 108 82 109 EchozaHandler::sendData($body); 110 111 $this->UserDetails = NULL; 83 112 } 84 113
Note: See TracChangeset
for help on using the changeset viewer.