private function tryParseAttribute($displayValue, IItem $item)
    {
        $parsedValue = $item->parseAttribute($displayValue);
        if (isset($parsedValue['text'])) {
            return $parsedValue['text'];
        }

        return $item->get($displayValue);
    }
private function tryParseAttribute($displayValue, IItem $item)
    {
        $parsedValue = $item->parseAttribute($displayValue);
        if (isset($parsedValue['text'])) {
            return $parsedValue['text'];
        }

        return $item->get($displayValue);
    }
private function tryParseAttribute ( $ displayValue , IItem $ item ) { $ parsedValue = $ item -> parseAttribute ( $ displayValue ) ; if ( isset ( $ parsedValue [ 'text' ] ) ) { return $ parsedValue [ 'text' ] ; } return $ item -> get ( $ displayValue ) ; }
Parse a column as text or return the native value if that failed.

@param string $displayValue The attribute to parse.
@param IITem  $item         The item to extract the value from.

@return mixed
Parse a column as text or return the native value if that failed .