Changeset 7637 for trunk/src/inc/KMLFile.class.php
- Timestamp:
- Mar 31, 2010, 1:32:46 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/inc/KMLFile.class.php
r7632 r7637 55 55 </kml>'; 56 56 57 private$fileFirst = 'type,host_name,has_been_checked,check_execution_time,current_state,last_hard_state,last_check,problem_has_been_acknowledged';57 static $fileFirst = 'type,host_name,has_been_checked,check_execution_time,current_state,last_hard_state,last_check,problem_has_been_acknowledged'; 58 58 private $fileContent = array('string', 'string', 'integer', 'double', 'integer', 'integer', 'integer', 'integer'); 59 59 … … 94 94 95 95 public function parseFile($file) { 96 $fileContents = explode("\r\n", $ nodeStatus->getFile());96 $fileContents = explode("\r\n", $file); 97 97 98 if ($fileContents[0] != $this->fileFirst) { 99 // TODO: Better error description 100 trigger_error(); 98 if ($fileContents[0] != KMLFile::$fileFirst) { 99 trigger_log(LOG_WARNING, 'Contents of file do not match with template of first line', __FILE__, __LINE__); 101 100 } 102 101 … … 106 105 107 106 if (count($lineContent) != count($this->fileContent)) { 108 // TODO: Better error description 109 trigger_error(); 107 trigger_log(LOG_WARNING, 'Contents of file do not match with template of lines', __FILE__, __LINE__); 110 108 } 111 109
Note:
See TracChangeset
for help on using the changeset viewer.