Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F107929790
ReleephProductController.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
Sat, Apr 12, 01:55
Size
711 B
Mime Type
text/x-php
Expires
Mon, Apr 14, 01:55 (2 d)
Engine
blob
Format
Raw Data
Handle
25500904
Attached To
rPH Phabricator
ReleephProductController.php
View Options
<?php
abstract
class
ReleephProductController
extends
ReleephController
{
private
$product
;
protected
function
setProduct
(
ReleephProject
$product
)
{
$this
->
product
=
$product
;
return
$this
;
}
protected
function
getProduct
()
{
return
$this
->
product
;
}
protected
function
getProductViewURI
(
ReleephProject
$product
)
{
return
$this
->
getApplicationURI
(
'project/'
.
$product
->
getID
().
'/'
);
}
protected
function
buildApplicationCrumbs
()
{
$crumbs
=
parent
::
buildApplicationCrumbs
();
$product
=
$this
->
getProduct
();
if
(
$product
)
{
$crumbs
->
addTextCrumb
(
$product
->
getName
(),
$this
->
getProductViewURI
(
$product
));
}
return
$crumbs
;
}
}
Event Timeline
Log In to Comment