Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F116758599
PhabricatorProjectColumnHeader.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
Mon, Jun 9, 00:23
Size
2 KB
Mime Type
text/x-php
Expires
Wed, Jun 11, 00:23 (2 d)
Engine
blob
Format
Raw Data
Handle
26648752
Attached To
rPH Phabricator
PhabricatorProjectColumnHeader.php
View Options
<?php
final
class
PhabricatorProjectColumnHeader
extends
Phobject
{
private
$orderKey
;
private
$headerKey
;
private
$sortVector
;
private
$name
;
private
$icon
;
private
$editProperties
;
private
$dropEffects
=
array
();
public
function
setOrderKey
(
$order_key
)
{
$this
->
orderKey
=
$order_key
;
return
$this
;
}
public
function
getOrderKey
()
{
return
$this
->
orderKey
;
}
public
function
setHeaderKey
(
$header_key
)
{
$this
->
headerKey
=
$header_key
;
return
$this
;
}
public
function
getHeaderKey
()
{
return
$this
->
headerKey
;
}
public
function
setSortVector
(
array
$sort_vector
)
{
$this
->
sortVector
=
$sort_vector
;
return
$this
;
}
public
function
getSortVector
()
{
return
$this
->
sortVector
;
}
public
function
setName
(
$name
)
{
$this
->
name
=
$name
;
return
$this
;
}
public
function
getName
()
{
return
$this
->
name
;
}
public
function
setIcon
(
PHUIIconView
$icon
)
{
$this
->
icon
=
$icon
;
return
$this
;
}
public
function
getIcon
()
{
return
$this
->
icon
;
}
public
function
setEditProperties
(
array
$edit_properties
)
{
$this
->
editProperties
=
$edit_properties
;
return
$this
;
}
public
function
getEditProperties
()
{
return
$this
->
editProperties
;
}
public
function
addDropEffect
(
PhabricatorProjectDropEffect
$effect
)
{
$this
->
dropEffects
[]
=
$effect
;
return
$this
;
}
public
function
getDropEffects
()
{
return
$this
->
dropEffects
;
}
public
function
toDictionary
()
{
return
array
(
'order'
=>
$this
->
getOrderKey
(),
'key'
=>
$this
->
getHeaderKey
(),
'template'
=>
hsprintf
(
'%s'
,
$this
->
newView
()),
'vector'
=>
$this
->
getSortVector
(),
'editProperties'
=>
$this
->
getEditProperties
(),
'effects'
=>
mpull
(
$this
->
getDropEffects
(),
'toDictionary'
),
);
}
private
function
newView
()
{
$icon_view
=
$this
->
getIcon
();
$name
=
$this
->
getName
();
$template
=
phutil_tag
(
'li'
,
array
(
'class'
=>
'workboard-group-header'
,
),
array
(
$icon_view
,
phutil_tag
(
'span'
,
array
(
'class'
=>
'workboard-group-header-name'
,
),
$name
),
));
return
$template
;
}
}
Event Timeline
Log In to Comment