' . "\n";
-
+
}
/**
* Retrieve the default for datetime data type
- *
+ *
* @param array $column containing column type, Default and null
*/
function PMA_getDefaultForDatetime($column)
@@ -258,14 +260,14 @@ function PMA_getDefaultForDatetime($column)
$column['Default'] = null;
}
}
-
+
/**
* Analyze the table column array
- *
+ *
* @param array $column description of column in given table
* @param array $comments_map comments for every column that has a comment
- * @param integer $timestamp_seen 0 interger
- *
+ * @param integer $timestamp_seen 0 interger
+ *
* @return array description of column in given table
*/
function PMA_analyzeTableColumnsArray($column, $comments_map, $timestamp_seen)
@@ -280,18 +282,18 @@ function PMA_analyzeTableColumnsArray($column, $comments_map, $timestamp_seen)
$column['is_binary'] = PMA_isColumnBinary($column);
$column['is_blob'] = PMA_isColumnBlob($column);
$column['is_char'] = PMA_isColumnChar($column);
- list($column['pma_type'], $column['wrap'], $column['first_timestamp']) =
+ list($column['pma_type'], $column['wrap'], $column['first_timestamp']) =
PMA_getEnumSetAndTimestampColumns($column, $timestamp_seen);
-
+
return $column;
}
-
+
/**
* Retrieve the column title
- *
+ *
* @param array $column description of column in given table
* @param array $comments_map comments for every column that has a comment
- *
+ *
* @return string column title
*/
function PMA_getColumnTitle($column, $comments_map)
@@ -304,12 +306,12 @@ function PMA_getColumnTitle($column, $comments_map)
return $column['Field_html'];
}
}
-
+
/**
* check whether the column is a bainary
- *
+ *
* @param array $column description of column in given table
- *
+ *
* @return boolean If check to ensure types such as "enum('one','two','binary',..)" or
* "enum('one','two','varbinary',..)" are not categorized as binary.
*/
@@ -324,14 +326,14 @@ function PMA_isColumnBinary($column)
} else {
return false;
}
-
+
}
-
+
/**
* check whether the column is a blob
- *
+ *
* @param array $column description of column in given table
- *
+ *
* @return boolean If check to ensure types such as "enum('one','two','blob',..)" or
* "enum('one','two','tinyblob',..)" etc. are not categorized as blob.
*/
@@ -350,9 +352,9 @@ function PMA_isColumnBlob($column)
/**
* check is table column char
- *
+ *
* @param array $column description of column in given table
- *
+ *
* @return boolean If check to ensure types such as "enum('one','two','char',..)" or
* "enum('one','two','varchar',..)" are not categorized as char.
*/
@@ -368,10 +370,10 @@ function PMA_isColumnChar($column)
}
/**
* Retieve set, enum, timestamp table columns
- *
+ *
* @param array $column description of column in given table
* @param int $timestamp_seen 0 interger
- *
+ *
* return array $column['pma_type'], $column['wrap'], $column['first_timestamp']
*/
function PMA_getEnumSetAndTimestampColumns($column, $timestamp_seen)
@@ -408,7 +410,7 @@ function PMA_getEnumSetAndTimestampColumns($column, $timestamp_seen)
* We don't want binary data to be destroyed
* Note: from the MySQL manual: "BINARY doesn't affect how the column is
* stored or retrieved" so it does not mean that the contents is binary
- *
+ *
* @param array $column description of column in given table
* @param boolean $is_upload upload or no
* @param string $column_name_appendix the name atttibute
@@ -418,13 +420,13 @@ function PMA_getEnumSetAndTimestampColumns($column, $timestamp_seen)
* @param integer $tabindex tab index
* @param integer $idindex id index
* @param boolean $insert_mode insert mode or edit mode
- *
+ *
* @return string an html sippet
*/
function PMA_getFunctionColumn($column, $is_upload, $column_name_appendix,
$unnullify_trigger, $no_support_types, $tabindex_for_function,
$tabindex, $idindex, $insert_mode
-) {
+) {
$html_output = '';
if (($GLOBALS['cfg']['ProtectBinary'] && $column['is_blob'] && !$is_upload)
|| ($GLOBALS['cfg']['ProtectBinary'] == 'all' && $column['is_binary'])
@@ -438,7 +440,7 @@ function PMA_getFunctionColumn($column, $is_upload, $column_name_appendix,
$html_output .= '
--
' . "\n";
} else {
$html_output .= '
' . "\n";
- $html_output .= '' . "\n";
@@ -449,7 +451,7 @@ function PMA_getFunctionColumn($column, $is_upload, $column_name_appendix,
/**
* The null column
- *
+ *
* @param array $column description of column in given table
* @param string $column_name_appendix the name atttibute
* @param array $real_null_value is column value null or not null
@@ -457,9 +459,9 @@ function PMA_getFunctionColumn($column, $is_upload, $column_name_appendix,
* @param integer $tabindex_for_null +6000
* @param integer $idindex id index
* @param array $vkey [multi_edit]['row_id']
- * @param array $foreigners keys into foreign fields
- * @param array $foreignData data about the foreign keys
- *
+ * @param array $foreigners keys into foreign fields
+ * @param array $foreignData data about the foreign keys
+ *
* @return string an html snippet
*/
function PMA_getNullColumn($column, $column_name_appendix, $real_null_value,
@@ -498,11 +500,11 @@ function PMA_getNullColumn($column, $column_name_appendix, $real_null_value,
/**
* Retrieve the nullify code for the null column
- *
+ *
* @param array $column description of column in given table
- * @param array $foreigners keys into foreign fields
+ * @param array $foreigners keys into foreign fields
* @param array $foreignData data about the foreign keys
- *
+ *
* @return integer $nullify_code
*/
function PMA_getNullifyCodeForNullColumn($column, $foreigners, $foreignData)
@@ -529,7 +531,7 @@ function PMA_getNullifyCodeForNullColumn($column, $foreigners, $foreignData)
/**
* Get the HTML elements for value column in inert form
- *
+ *
* @param array $column description of column in given table
* @param string $backup_field hidden input field
* @param string $column_name_appendix the name atttibute
@@ -544,16 +546,16 @@ function PMA_getNullifyCodeForNullColumn($column, $foreigners, $foreignData)
* @param array $rownumber_param &rownumber=row_id
* @param array $titles An HTML IMG tag for a particular icon from a theme,
* which may be an actual file or an icon from a sprite
- * @param array $text_dir
+ * @param array $text_dir
* @param string $special_chars_encoded replaced char if the string starts
- * with a \r\n pair (0x0d0a) add an extra \n
+ * with a \r\n pair (0x0d0a) add an extra \n
* @param integer $biggest_max_file_size 0 intger
* @param string $default_char_editing default char editing mode which is stroe
* in the config.inc.php script
* @param array $no_support_types list of datatypes that are not (yet) handled by PMA
* @param array $gis_data_types list of GIS data types
- *
- * @return string an html snippet
+ *
+ * @return string an html snippet
*/
function PMA_getValueColumn($column, $backup_field, $column_name_appendix,
$unnullify_trigger,$tabindex, $tabindex_for_value, $idindex, $data,
@@ -562,18 +564,18 @@ function PMA_getValueColumn($column, $backup_field, $column_name_appendix,
$default_char_editing, $no_support_types, $gis_data_types, $extracted_columnspec
) {
$html_output = '';
-
+
if ($foreignData['foreign_link'] == true) {
$html_output .= PMA_getForeignLink($column, $backup_field, $column_name_appendix,
$unnullify_trigger, $tabindex, $tabindex_for_value, $idindex, $data,
$paramTableDbArray, $rownumber_param, $titles
);
-
+
} elseif (is_array($foreignData['disp_row'])) {
$html_output .= PMA_dispRowForeignData($backup_field, $column_name_appendix,
$unnullify_trigger, $tabindex, $tabindex_for_value, $idindex, $data, $foreignData
);
-
+
} elseif ($GLOBALS['cfg']['LongtextDoubleTextarea'] && strstr($column['pma_type'], 'longtext')) {
$html_output = '