[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/releeph/controller/branch/ -> ReleephBranchController.php (source)

   1  <?php
   2  
   3  abstract class ReleephBranchController extends ReleephController {
   4  
   5    private $branch;
   6  
   7    public function setBranch($branch) {
   8      $this->branch = $branch;
   9      return $this;
  10    }
  11  
  12    public function getBranch() {
  13      return $this->branch;
  14    }
  15  
  16    protected function buildApplicationCrumbs() {
  17      $crumbs = parent::buildApplicationCrumbs();
  18  
  19      $branch = $this->getBranch();
  20      if ($branch) {
  21        $product = $branch->getProduct();
  22  
  23        $crumbs->addTextCrumb(
  24          $product->getName(),
  25          $this->getProductViewURI($product));
  26  
  27        $crumbs->addTextCrumb(
  28          $branch->getName(),
  29          $this->getBranchViewURI($branch));
  30      }
  31  
  32      return $crumbs;
  33    }
  34  
  35  }


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1