Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2901428
GanttController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
GanttController.php
View Options
<?php
final
class
GanttController
extends
PhabricatorProjectController
{
public
function
handleRequest
(
AphrontRequest
$request
)
{
$response
=
$this
->
loadProject
(
)
;
if
(
$response
)
{
return
$response
;
}
require_celerity_resource
(
'frappe-gantt-css'
,
'gantt-resources'
)
;
require_celerity_resource
(
'frappe-gantt-js'
,
'gantt-resources'
)
;
require_celerity_resource
(
'frappe-gantt-js-integration'
,
'gantt-resources'
)
;
require_celerity_resource
(
'frappe-gantt-css-integration'
,
'gantt-resources'
)
;
$project
=
$this
->
getProject
(
)
;
$chart_view
=
phutil_tag
(
'div'
,
array
(
'class'
=>
'frappe-gantt-integration chart-hardpoint'
,
)
,
hsprintf
(
'<svg id="gantt"></svg>'
)
)
;
$panel
=
id
(
new
PHUIBoxView
)
->
appendChild
(
$chart_view
)
->
setBorder
(
true
)
;
$view
=
id
(
new
PHUITwoColumnView
(
)
)
->
setFooter
(
array
(
$panel
,
)
)
;
$crumbs
=
$this
->
buildApplicationCrumbs
(
)
;
$crumbs
->
addTextCrumb
(
pht
(
'Gantt'
)
)
;
$crumbs
->
setBorder
(
true
)
;
$nav
=
$this
->
newNavigation
(
$project
,
'project.gantt'
)
;
return
$this
->
newPage
(
)
->
setTitle
(
'Gantt'
)
->
setCrumbs
(
$crumbs
)
->
setNavigation
(
$nav
)
->
appendChild
(
$view
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Jan 20, 09:19 (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1133338
Default Alt Text
GanttController.php (1 KB)
Attached To
Mode
R14 Gantt Charts
Attached
Detach File
Event Timeline
Log In to Comment