PMA\libraries\DisplayResults::_getPartialText PHP Method

_getPartialText() private method

Truncates given string based on LimitChars configuration and Session pftext variable (string is truncated only if necessary)
private _getPartialText ( string $str ) : mixed
$str string string to be truncated
return mixed
    private function _getPartialText($str)
    {
        $original_length = mb_strlen($str);
        if ($original_length > $GLOBALS['cfg']['LimitChars'] && $_SESSION['tmpval']['pftext'] === self::DISPLAY_PARTIAL_TEXT) {
            $str = mb_substr($str, 0, $GLOBALS['cfg']['LimitChars']) . '...';
            $truncated = true;
        } else {
            $truncated = false;
        }
        return array($truncated, $str, $original_length);
    }
DisplayResults