Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98150795
PhabricatorMailStamp.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, Jan 10, 08:16
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Jan 12, 08:16 (2 d)
Engine
blob
Format
Raw Data
Handle
23517739
Attached To
rPH Phabricator
PhabricatorMailStamp.php
View Options
<?php
abstract
class
PhabricatorMailStamp
extends
Phobject
{
private
$key
;
private
$value
;
private
$label
;
private
$viewer
;
final
public
function
getStampType
()
{
return
$this
->
getPhobjectClassConstant
(
'STAMPTYPE'
);
}
final
public
function
setKey
(
$key
)
{
$this
->
key
=
$key
;
return
$this
;
}
final
public
function
getKey
()
{
return
$this
->
key
;
}
final
protected
function
setRawValue
(
$value
)
{
$this
->
value
=
$value
;
return
$this
;
}
final
protected
function
getRawValue
()
{
return
$this
->
value
;
}
final
public
function
setViewer
(
PhabricatorUser
$viewer
)
{
$this
->
viewer
=
$viewer
;
return
$this
;
}
final
public
function
getViewer
()
{
return
$this
->
viewer
;
}
final
public
function
setLabel
(
$label
)
{
$this
->
label
=
$label
;
return
$this
;
}
final
public
function
getLabel
()
{
return
$this
->
label
;
}
public
function
setValue
(
$value
)
{
return
$this
->
setRawValue
(
$value
);
}
final
public
function
toDictionary
()
{
return
array
(
'type'
=>
$this
->
getStampType
(),
'key'
=>
$this
->
getKey
(),
'value'
=>
$this
->
getValueForDictionary
(),
);
}
final
public
static
function
getAllStamps
()
{
return
id
(
new
PhutilClassMapQuery
())
->
setAncestorClass
(
__CLASS__
)
->
setUniqueMethod
(
'getStampType'
)
->
execute
();
}
protected
function
getValueForDictionary
()
{
return
$this
->
getRawValue
();
}
public
function
setValueFromDictionary
(
$value
)
{
return
$this
->
setRawValue
(
$value
);
}
public
function
getValueForRendering
()
{
return
$this
->
getRawValue
();
}
abstract
public
function
renderStamps
(
$value
);
final
protected
function
renderStamp
(
$key
,
$value
=
null
)
{
return
$key
.
'('
.
$value
.
')'
;
}
}
Event Timeline
Log In to Comment