Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1307331
ReleephProjectViewController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
ReleephProjectViewController.php
View Options
<?php
final
class
ReleephProjectViewController
extends
ReleephProjectController
{
public
function
processRequest
()
{
// Load all branches
$releeph_project
=
$this
->
getReleephProject
();
$releeph_branches
=
id
(
new
ReleephBranch
())
->
loadAllWhere
(
'releephProjectID = %d'
,
$releeph_project
->
getID
());
$path
=
$this
->
getRequest
()->
getRequestURI
()->
getPath
();
$is_open_branches
=
strpos
(
$path
,
'closedbranches/'
)
===
false
;
$view
=
id
(
new
ReleephProjectView
())
->
setShowOpenBranches
(
$is_open_branches
)
->
setUser
(
$this
->
getRequest
()->
getUser
())
->
setReleephProject
(
$releeph_project
)
->
setBranches
(
$releeph_branches
);
$crumbs
=
$this
->
buildApplicationCrumbs
()
->
addCrumb
(
id
(
new
PhabricatorCrumbView
())
->
setName
(
$releeph_project
->
getName
())
->
setHref
(
$releeph_project
->
getURI
()));
if
(
$releeph_project
->
getIsActive
())
{
$crumbs
->
addAction
(
id
(
new
PHUIListItemView
())
->
setHref
(
$releeph_project
->
getURI
(
'cutbranch'
))
->
setName
(
pht
(
'Cut New Branch'
))
->
setIcon
(
'create'
));
}
return
$this
->
buildStandardPageResponse
(
array
(
$crumbs
,
$view
,
),
array
(
'title'
=>
$releeph_project
->
getName
()
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Jul 5, 8:39 AM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
312516
Default Alt Text
ReleephProjectViewController.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment