includes/filerepo/file/ArchivedFile.php 1 location
|
@@ 426-436 (lines=11) @@
|
| 423 |
|
* documents which aren't multipage documents |
| 424 |
|
* @return bool|int |
| 425 |
|
*/ |
| 426 |
|
function pageCount() { |
| 427 |
|
if ( !isset( $this->pageCount ) ) { |
| 428 |
|
if ( $this->getHandler() && $this->handler->isMultiPage( $this ) ) { |
| 429 |
|
$this->pageCount = $this->handler->pageCount( $this ); |
| 430 |
|
} else { |
| 431 |
|
$this->pageCount = false; |
| 432 |
|
} |
| 433 |
|
} |
| 434 |
|
|
| 435 |
|
return $this->pageCount; |
| 436 |
|
} |
| 437 |
|
|
| 438 |
|
/** |
| 439 |
|
* Return the type of the media in the file. |
includes/filerepo/file/File.php 1 location
|
@@ 1969-1979 (lines=11) @@
|
| 1966 |
|
* |
| 1967 |
|
* @return bool|int |
| 1968 |
|
*/ |
| 1969 |
|
function pageCount() { |
| 1970 |
|
if ( !isset( $this->pageCount ) ) { |
| 1971 |
|
if ( $this->getHandler() && $this->handler->isMultiPage( $this ) ) { |
| 1972 |
|
$this->pageCount = $this->handler->pageCount( $this ); |
| 1973 |
|
} else { |
| 1974 |
|
$this->pageCount = false; |
| 1975 |
|
} |
| 1976 |
|
} |
| 1977 |
|
|
| 1978 |
|
return $this->pageCount; |
| 1979 |
|
} |
| 1980 |
|
|
| 1981 |
|
/** |
| 1982 |
|
* Calculate the height of a thumbnail using the source and destination width |