Profile::getSpecificValueToDisplay PHP Method

getSpecificValueToDisplay() static public method

static public getSpecificValueToDisplay ( $field, $values, array $options = [] )
$field
$values
$options array array
    static function getSpecificValueToDisplay($field, $values, array $options = array())
    {
        if (!is_array($values)) {
            $values = array($field => $values);
        }
        switch ($field) {
            case 'interface':
                return self::getInterfaceName($values[$field]);
            case 'helpdesk_hardware':
                return self::getHelpdeskHardwareTypeName($values[$field]);
            case "helpdesk_item_type":
                $types = explode(',', $values[$field]);
                $message = array();
                foreach ($types as $type) {
                    if ($item = getItemForItemtype($type)) {
                        $message[] = $item->getTypeName();
                    }
                }
                return implode(', ', $message);
        }
        return parent::getSpecificValueToDisplay($field, $values, $options);
    }