2016-04-11 10:17:46 -07:00
|
|
|
<?php
|
|
|
|
|
|
2016-05-09 14:24:21 -07:00
|
|
|
abstract class DiffusionRepositoryManageController
|
2016-04-11 10:17:46 -07:00
|
|
|
extends DiffusionController {
|
|
|
|
|
|
2016-05-09 14:24:21 -07:00
|
|
|
protected function buildApplicationCrumbs() {
|
|
|
|
|
$crumbs = parent::buildApplicationCrumbs();
|
2016-04-11 10:17:46 -07:00
|
|
|
|
2016-05-09 14:24:21 -07:00
|
|
|
if ($this->hasDiffusionRequest()) {
|
|
|
|
|
$drequest = $this->getDiffusionRequest();
|
|
|
|
|
$repository = $drequest->getRepository();
|
2016-04-11 10:17:46 -07:00
|
|
|
|
2016-05-09 14:24:21 -07:00
|
|
|
$crumbs->addTextCrumb(
|
|
|
|
|
$repository->getDisplayName(),
|
|
|
|
|
$repository->getURI());
|
2016-04-16 17:33:27 -07:00
|
|
|
|
2016-05-09 14:24:21 -07:00
|
|
|
$crumbs->addTextCrumb(
|
|
|
|
|
pht('Manage'),
|
|
|
|
|
$repository->getPathURI('manage/'));
|
2016-04-16 17:33:27 -07:00
|
|
|
}
|
|
|
|
|
|
2016-05-09 14:24:21 -07:00
|
|
|
return $crumbs;
|
2016-04-11 10:17:46 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|