當前位置: 首頁>>代碼示例>>PHP>>正文


PHP backup_general_helper::array_checksum_recursive方法代碼示例

本文整理匯總了PHP中backup_general_helper::array_checksum_recursive方法的典型用法代碼示例。如果您正苦於以下問題:PHP backup_general_helper::array_checksum_recursive方法的具體用法?PHP backup_general_helper::array_checksum_recursive怎麽用?PHP backup_general_helper::array_checksum_recursive使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在backup_general_helper的用法示例。


在下文中一共展示了backup_general_helper::array_checksum_recursive方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: calculate_checksum

 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));
 }
開發者ID:bobpuffer,項目名稱:moodleUCLA-LUTH,代碼行數:5,代碼來源:base_plan.class.php

示例2: calculate_checksum

 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;
 }
開發者ID:evltuma,項目名稱:moodle,代碼行數:9,代碼來源:backup_controller.class.php

示例3: calculate_checksum

 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));
 }
開發者ID:vuchannguyen,項目名稱:web,代碼行數:5,代碼來源:base_task.class.php


注:本文中的backup_general_helper::array_checksum_recursive方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。