2014-09-07 01:26:12 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A specific documentation folder within a {@link DocumentationEntity}.
|
|
|
|
*
|
|
|
|
* Maps to a folder on the file system.
|
|
|
|
*
|
|
|
|
* @package docsviewer
|
|
|
|
* @subpackage model
|
|
|
|
*/
|
|
|
|
class DocumentationFolder extends DocumentationPage {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getTitle() {
|
2014-09-21 01:20:01 +02:00
|
|
|
$path = explode(DIRECTORY_SEPARATOR, trim($this->getPath(), DIRECTORY_SEPARATOR));
|
|
|
|
$folderName = array_pop($path);
|
|
|
|
|
|
|
|
return DocumentationHelper::clean_page_name($folderName);
|
2014-09-07 01:26:12 +02:00
|
|
|
}
|
2014-09-21 01:20:01 +02:00
|
|
|
|
2014-09-07 01:26:12 +02:00
|
|
|
}
|