Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98780058
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
Thu, Jan 16, 09:52
Size
678 B
Mime Type
text/x-php
Expires
Sat, Jan 18, 09:52 (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
23643928
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