public static function getTypeName($type) { // get full type name switch ($type) { case 'act': $type = 'action'; break; case 'err': $type = 'error'; break; case 'lbl': $type = 'label'; break; case 'msg': $type = 'message'; break; } return $type; }