public function calculate_checksum()
 {
     // Let's do it using name and tasks (settings are part of tasks)
     return md5($this->name . '-' . backup_general_helper::array_checksum_recursive($this->tasks));
 }
 public function calculate_checksum()
 {
     // Reset current checksum to take it out from calculations!
     $this->checksum = '';
     // Init checksum
     $tempchecksum = md5('backupid-' . $this->backupid . 'type-' . $this->type . 'id-' . $this->id . 'format-' . $this->format . 'interactive-' . $this->interactive . 'mode-' . $this->mode . 'userid-' . $this->userid . 'operation-' . $this->operation . 'status-' . $this->status . 'execution-' . $this->execution . 'plan-' . backup_general_helper::array_checksum_recursive(array($this->plan)) . 'destination-' . backup_general_helper::array_checksum_recursive(array($this->destination)) . 'logger-' . backup_general_helper::array_checksum_recursive(array($this->logger)));
     $this->log('calculating controller checksum', backup::LOG_DEBUG, $tempchecksum);
     return $tempchecksum;
 }
示例#3
0
 public function calculate_checksum()
 {
     // Let's do it using name and settings and steps
     return md5($this->name . '-' . backup_general_helper::array_checksum_recursive($this->settings) . backup_general_helper::array_checksum_recursive($this->steps));
 }