MediaWiki  REL1_22
MockFSFile.php
Go to the documentation of this file.
00001 <?php
00034 class MockFSFile extends FSFile {
00035     protected $sha1Base36 = null; // File Sha1Base36
00036 
00037     public function exists() {
00038         return true;
00039     }
00040 
00045     public function getSize() {
00046         return 1911;
00047     }
00048 
00049     public function getTimestamp() {
00050         return wfTimestamp( TS_MW );
00051     }
00052 
00053     public function getMimeType() {
00054         return 'text/mock';
00055     }
00056 
00057     public function getProps( $ext = true ) {
00058         return array(
00059             'fileExists' => $this->exists(),
00060             'size' => $this->getSize(),
00061             'file-mime' => $this->getMimeType(),
00062             'sha1' => $this->getSha1Base36(),
00063         );
00064     }
00065 
00066     public function getSha1Base36( $recache = false ) {
00067         return '1234567890123456789012345678901';
00068     }
00069 }