includes/filerepo/file/ForeignDBFile.php 1 location
|
@@ 48-54 (lines=7) @@
|
45 |
|
* @param FileRepo $repo |
46 |
|
* @return ForeignDBFile |
47 |
|
*/ |
48 |
|
static function newFromRow( $row, $repo ) { |
49 |
|
$title = Title::makeTitle( NS_FILE, $row->img_name ); |
50 |
|
$file = new self( $title, $repo ); |
51 |
|
$file->loadFromRow( $row ); |
52 |
|
|
53 |
|
return $file; |
54 |
|
} |
55 |
|
|
56 |
|
/** |
57 |
|
* @param string $srcPath |
includes/filerepo/file/LocalFile.php 1 location
|
@@ 155-161 (lines=7) @@
|
152 |
|
* |
153 |
|
* @return LocalFile |
154 |
|
*/ |
155 |
|
static function newFromRow( $row, $repo ) { |
156 |
|
$title = Title::makeTitle( NS_FILE, $row->img_name ); |
157 |
|
$file = new self( $title, $repo ); |
158 |
|
$file->loadFromRow( $row ); |
159 |
|
|
160 |
|
return $file; |
161 |
|
} |
162 |
|
|
163 |
|
/** |
164 |
|
* Create a LocalFile from a SHA-1 key |