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
|
@@ 162-168 (lines=7) @@
|
| 159 |
|
* |
| 160 |
|
* @return LocalFile |
| 161 |
|
*/ |
| 162 |
|
static function newFromRow( $row, $repo ) { |
| 163 |
|
$title = Title::makeTitle( NS_FILE, $row->img_name ); |
| 164 |
|
$file = new self( $title, $repo ); |
| 165 |
|
$file->loadFromRow( $row ); |
| 166 |
|
|
| 167 |
|
return $file; |
| 168 |
|
} |
| 169 |
|
|
| 170 |
|
/** |
| 171 |
|
* Create a LocalFile from a SHA-1 key |