]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16596 adding missing get_pathnamehash() method
authorskodak <skodak>
Sun, 21 Sep 2008 15:54:48 +0000 (15:54 +0000)
committerskodak <skodak>
Sun, 21 Sep 2008 15:54:48 +0000 (15:54 +0000)
lib/file/virtual_root_file.php

index 9fc53b385f029c889e36fe6b1ce56000a4427c08..cebd7ae20ef6dfb37c2e91e605c8e6aa72ea8300 100644 (file)
@@ -170,4 +170,9 @@ class virtual_root_file {
     public function get_contenthash() {
         return sha1('');
     }
+
+    public function get_pathnamehash() {
+        return sha1($this->get_contextid().$this->get_filearea().$this->get_itemid().$this->get_filepath().$this->get_filename());
+    }
+
 }