Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F113708335
ReleephBranchController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, May 20, 13:43
Size
678 B
Mime Type
text/x-php
Expires
Thu, May 22, 13:43 (1 d, 17 h)
Engine
blob
Format
Raw Data
Handle
26302333
Attached To
rPH Phabricator
ReleephBranchController.php
View Options
<?php
abstract
class
ReleephBranchController
extends
ReleephController
{
private
$branch
;
public
function
setBranch
(
$branch
)
{
$this
->
branch
=
$branch
;
return
$this
;
}
public
function
getBranch
()
{
return
$this
->
branch
;
}
protected
function
buildApplicationCrumbs
()
{
$crumbs
=
parent
::
buildApplicationCrumbs
();
$branch
=
$this
->
getBranch
();
if
(
$branch
)
{
$product
=
$branch
->
getProduct
();
$crumbs
->
addTextCrumb
(
$product
->
getName
(),
$this
->
getProductViewURI
(
$product
));
$crumbs
->
addTextCrumb
(
$branch
->
getName
(),
$this
->
getBranchViewURI
(
$branch
));
}
return
$crumbs
;
}
}
Event Timeline
Log In to Comment