Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F116086913
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
Wed, Jun 4, 20:55
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Jun 6, 20:55 (2 d)
Engine
blob
Format
Raw Data
Handle
26561531
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
->
renderSingleView
(
$views
);
}
}
Event Timeline
Log In to Comment