private function _addClass($class, $condition_field, $meta, $nowrap, $is_field_truncated = false, $transformation_plugin = '', $default_function = '')
{
$classes = array($class, $nowrap);
if (isset($meta->mimetype)) {
$classes[] = preg_replace('/\\//', '_', $meta->mimetype);
}
if ($condition_field) {
$classes[] = 'condition';
}
if ($is_field_truncated) {
$classes[] = 'truncated';
}
$mime_map = $this->__get('mime_map');
$orgFullColName = $this->__get('db') . '.' . $meta->orgtable . '.' . $meta->orgname;
if ($transformation_plugin != $default_function || !empty($mime_map[$orgFullColName]['input_transformation'])) {
$classes[] = 'transformed';
}
// Define classes to be added to this data field based on the type of data
$matches = array('enum' => 'enum', 'set' => 'set', 'binary' => 'hex');
foreach ($matches as $key => $value) {
if (mb_strpos($meta->flags, $key) !== false) {
$classes[] = $value;
}
}
if (mb_strpos($meta->type, 'bit') !== false) {
$classes[] = 'bit';
}
return implode(' ', $classes);
}