[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class PhrictionActionConstants extends PhrictionConstants { 4 5 const ACTION_CREATE = 'create'; 6 const ACTION_EDIT = 'edit'; 7 const ACTION_DELETE = 'delete'; 8 const ACTION_MOVE_AWAY = 'move to'; 9 const ACTION_MOVE_HERE = 'move here'; 10 11 public static function getActionPastTenseVerb($action) { 12 static $map = array( 13 self::ACTION_CREATE => 'created', 14 self::ACTION_EDIT => 'edited', 15 self::ACTION_DELETE => 'deleted', 16 self::ACTION_MOVE_AWAY => 'moved', 17 self::ACTION_MOVE_HERE => 'moved', 18 ); 19 20 return idx($map, $action, "brazenly {$action}'d"); 21 } 22 23 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |