Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97590058
PhrictionActionConstants.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, Jan 5, 12:55
Size
620 B
Mime Type
text/x-php
Expires
Tue, Jan 7, 12:55 (2 d)
Engine
blob
Format
Raw Data
Handle
23432034
Attached To
rPH Phabricator
PhrictionActionConstants.php
View Options
<?php
final
class
PhrictionActionConstants
extends
PhrictionConstants
{
const
ACTION_CREATE
=
'create'
;
const
ACTION_EDIT
=
'edit'
;
const
ACTION_DELETE
=
'delete'
;
const
ACTION_MOVE_AWAY
=
'move to'
;
const
ACTION_MOVE_HERE
=
'move here'
;
public
static
function
getActionPastTenseVerb
(
$action
)
{
static
$map
=
array
(
self
::
ACTION_CREATE
=>
'created'
,
self
::
ACTION_EDIT
=>
'edited'
,
self
::
ACTION_DELETE
=>
'deleted'
,
self
::
ACTION_MOVE_AWAY
=>
'moved'
,
self
::
ACTION_MOVE_HERE
=>
'moved'
,
);
return
idx
(
$map
,
$action
,
"brazenly {$action}'d"
);
}
}
Event Timeline
Log In to Comment