Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F176753
ProjectCustomField.php
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
bluehawk
Jul 12 2014, 2:57 AM
2014-07-12 02:57:13 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
ProjectCustomField.php
View Options
<?php
final
class
ProjectCustomField
extends
PhabricatorProjectCustomField
implements
PhabricatorStandardCustomFieldInterface
{
public
function
__construct
()
{
$proxy
=
id
(
new
PhabricatorStandardCustomFieldDate
())
->
setFieldKey
(
$this
->
getFieldKey
())
->
setApplicationField
(
$this
)
->
setFieldConfig
(
array
(
'name'
=>
$this
->
getFieldName
(),
'description'
=>
$this
->
getFieldDescription
(),
));
$this
->
setProxy
(
$proxy
);
}
public
function
getStandardCustomFieldNamespace
()
{
return
'project'
;
}
// == General field identity stuff
public
function
getFieldKey
()
{
return
'sprint:startdate'
;
}
public
function
getFieldName
()
{
return
'Sprint Start Date'
;
}
public
function
getFieldDescription
()
{
return
'When a sprint starts'
;
}
public
function
renderPropertyViewValue
(
array
$handles
)
{
if
(
$this
->
getProxy
()->
getFieldValue
())
{
return
parent
::
renderPropertyViewValue
(
$handles
);
}
return
null
;
}
// == Search
public
function
shouldAppearInApplicationSearch
()
{
return
true
;
}
}
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/7x/fv/eqxbwkggedz6aqnp
Default Alt Text
ProjectCustomField.php (1 KB)
Attached To
Mode
P1201 ProjectCustomField.php
Attached
Detach File
Event Timeline
Log In to Comment