Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F108767361
ManiphestTaskListView.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
Fri, Apr 18, 08:44
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Apr 20, 08:44 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25645421
Attached To
rPH Phabricator
ManiphestTaskListView.php
View Options
<?php
/**
* @group maniphest
*/
final
class
ManiphestTaskListView
extends
ManiphestView
{
private
$tasks
;
private
$handles
;
private
$showBatchControls
;
private
$showSubpriorityControls
;
public
function
setTasks
(
array
$tasks
)
{
assert_instances_of
(
$tasks
,
'ManiphestTask'
);
$this
->
tasks
=
$tasks
;
return
$this
;
}
public
function
setHandles
(
array
$handles
)
{
assert_instances_of
(
$handles
,
'PhabricatorObjectHandle'
);
$this
->
handles
=
$handles
;
return
$this
;
}
public
function
setShowBatchControls
(
$show_batch_controls
)
{
$this
->
showBatchControls
=
$show_batch_controls
;
return
$this
;
}
public
function
setShowSubpriorityControls
(
$show_subpriority_controls
)
{
$this
->
showSubpriorityControls
=
$show_subpriority_controls
;
return
$this
;
}
public
function
render
()
{
$views
=
array
();
foreach
(
$this
->
tasks
as
$task
)
{
$view
=
new
ManiphestTaskSummaryView
();
$view
->
setTask
(
$task
);
$view
->
setShowBatchControls
(
$this
->
showBatchControls
);
$view
->
setShowSubpriorityControls
(
$this
->
showSubpriorityControls
);
$view
->
setUser
(
$this
->
user
);
$view
->
setHandles
(
$this
->
handles
);
$views
[]
=
$view
->
render
();
}
return
$this
->
renderHTMLView
(
$views
);
}
}
Event Timeline
Log In to Comment