Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F434686
ManiphestTaskListView.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
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
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 3, 5:59 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
62428
Default Alt Text
ManiphestTaskListView.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment