関数
Log::getActionTypeText( string $key )
Returns action type text translation for a given action key
パラメータ パラメータ
- $key
(文字列) (必須)
ファイル: src/Models/Log.php
public static function getActionTypeText($key) { $actionType = ''; switch ($key) { case self::ACTION_DEFERRED_AUTHORIZE: $actionType = __('Back-order', 'wcexaap'); break; case self::ACTION_AUTHORIZE: // 与信 $actionType = __('Authorize Payment', 'wcexaap'); break; case self::ACTION_ASYNC_AUTHORIZE: // 与信(非同期) $actionType = __('Async Authorize Payment', 'wcexaap'); break; case self::ACTION_CAPTURE_PAYMENTS: // 売上計上 $actionType = __('Capture', 'wcexaap'); break; case self::ACTION_AUTHORIZE_AND_CAPTURE: // 与信売上計上 $actionType = __('Authorize and Capture', 'wcexaap'); break; case self::ACTION_ASYNC_CAPTURE_PAYMENTS: // 売上計上(非同期) $actionType = __('Async Capture Payment', 'wcexaap'); break; case self::ACTION_CANCEL_TRANS: // 取消 $actionType = __('Cancel', 'wcexaap'); break; case self::ACTION_ASYNC_REFUND: // 返金(非同期) $actionType = __('Async Refund', 'wcexaap'); break; case self::ACTION_REFUND: // 返金 $actionType = __('Refund', 'wcexaap'); break; } return $actionType; }