| @@ 1523-1532 (lines=10) @@ | ||
| 1520 | * |
|
| 1521 | * @return string |
|
| 1522 | */ |
|
| 1523 | function getArchiveRel( $suffix = false ) { |
|
| 1524 | $path = 'archive/' . $this->getHashPath(); |
|
| 1525 | if ( $suffix === false ) { |
|
| 1526 | $path = substr( $path, 0, -1 ); |
|
| 1527 | } else { |
|
| 1528 | $path .= $suffix; |
|
| 1529 | } |
|
| 1530 | ||
| 1531 | return $path; |
|
| 1532 | } |
|
| 1533 | ||
| 1534 | /** |
|
| 1535 | * Get the path, relative to the thumbnail zone root, of the |
|
| @@ 1568-1577 (lines=10) @@ | ||
| 1565 | * @param bool|string $suffix If not false, the name of a thumbnail file |
|
| 1566 | * @return string |
|
| 1567 | */ |
|
| 1568 | function getArchiveThumbRel( $archiveName, $suffix = false ) { |
|
| 1569 | $path = 'archive/' . $this->getHashPath() . $archiveName . "/"; |
|
| 1570 | if ( $suffix === false ) { |
|
| 1571 | $path = substr( $path, 0, -1 ); |
|
| 1572 | } else { |
|
| 1573 | $path .= $suffix; |
|
| 1574 | } |
|
| 1575 | ||
| 1576 | return $path; |
|
| 1577 | } |
|
| 1578 | ||
| 1579 | /** |
|
| 1580 | * Get the path of the archived file. |
|