Page MenuHomec4science

ReleephProductController.php
No OneTemporary

File Metadata

Created
Mon, Jan 6, 23:02

ReleephProductController.php

<?php
abstract class ReleephProductController extends ReleephController {
private $product;
protected function setProduct(ReleephProject $product) {
$this->product = $product;
return $this;
}
protected function getProductViewURI(ReleephProject $product) {
return $this->getApplicationURI('project/'.$product->getID().'/');
}
protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs();
$product = $this->product;
if ($product) {
$crumbs->addTextCrumb(
$product->getName(),
$this->getProductViewURI($product));
}
return $crumbs;
}
}

Event Timeline