Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F83164568
PhrictionChangeType.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
Sun, Sep 15, 13:13
Size
617 B
Mime Type
text/x-php
Expires
Tue, Sep 17, 13:13 (2 d)
Engine
blob
Format
Raw Data
Handle
20799743
Attached To
rPH Phabricator
PhrictionChangeType.php
View Options
<?php
final
class
PhrictionChangeType
extends
PhrictionConstants
{
const
CHANGE_EDIT
=
0
;
const
CHANGE_DELETE
=
1
;
const
CHANGE_MOVE_HERE
=
2
;
const
CHANGE_MOVE_AWAY
=
3
;
const
CHANGE_STUB
=
4
;
public
static
function
getChangeTypeLabel
(
$const
)
{
$map
=
array
(
self
::
CHANGE_EDIT
=>
pht
(
'Edit'
),
self
::
CHANGE_DELETE
=>
pht
(
'Delete'
),
self
::
CHANGE_MOVE_HERE
=>
pht
(
'Move Here'
),
self
::
CHANGE_MOVE_AWAY
=>
pht
(
'Move Away'
),
self
::
CHANGE_STUB
=>
pht
(
'Created through child'
),
);
return
idx
(
$map
,
$const
,
pht
(
'Unknown'
));
}
}
Event Timeline
Log In to Comment