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