Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97865885
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
Mon, Jan 6, 23:02
Size
638 B
Mime Type
text/x-php
Expires
Wed, Jan 8, 23:02 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23423535
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
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
Log In to Comment