Riferimenti per il file typo3/ext/phpmyadmin/modsub/phpMyAdmin-2.6.4-pl3/libraries/relation.lib.php

Vai al codice sorgente di questo file.

Funzioni

 PMA_query_as_cu ($sql, $show_error=TRUE, $options=0)
 PMA_getRelationsParam ($verbose=FALSE)
 PMA_getForeigners ($db, $table, $column= '', $source= 'both')
 PMA_getDisplayField ($db, $table)
 PMA_getComments ($db, $table= '')
 PMA_handleSlashes ($val)
 PMA_setComment ($db, $table, $col, $comment, $removekey= '', $mode='auto')
 PMA_setHistory ($db, $table, $username, $sqlquery)
 PMA_getHistory ($username)
 PMA_purgeHistory ($username)
 PMA_foreignDropdown ($disp, $foreign_field, $foreign_display, $data, $max)


Documentazione delle funzioni

PMA_foreignDropdown disp,
foreign_field,
foreign_display,
data,
max
 

Outputs dropdown with values of foreign fields

Parametri:
string the query of the foreign keys
string the foreign field
string the foreign field to display
string the current data of the dropdown
array global phpMyAdmin configuration

Restituisce:
string the <option value=""><option>s
public

Definizione alla linea 796 del file relation.lib.php.

Riferimenti $cfg, $data, $disp, $key, $value, $vtitle, nbsp, selected, e value.

PMA_getComments db,
table = ''
 

Gets the comments for all rows of a table

Parametri:
string the name of the db to check for
string the name of the table to check for
Restituisce:
array [field_name] = comment
array the list of relations settings

public

Autori:
Mike Beck <mikebeck@users.sourceforge.net> and lem9

Definizione alla linea 445 del file relation.lib.php.

Riferimenti $cfgRelation, $col, $db, $field, $i, $key, $row, $table, db, PMA_DBI_fetch_assoc(), PMA_DBI_free_result(), PMA_DBI_get_fields(), PMA_DBI_num_rows(), PMA_query_as_cu(), PMA_setComment(), PMA_sqlAddslashes(), e WHERE.

Referenziato da PMA_displayTableHeaders(), PMA_exportStructure(), e PMA_getTableComments().

Questo è il grafo delle chiamate per questa funzione:

PMA_getDisplayField db,
table
 

Gets the display field of a table

Parametri:
string the name of the db to check for
string the name of the table to check for
Restituisce:
string field name
array the list of relations settings

public

Autore:
Mike Beck <mikebeck@users.sourceforge.net>
Try to fetch the display field from DB.

Emulating the display field for some information_schema tables.

No Luck...

Definizione alla linea 391 del file relation.lib.php.

Riferimenti $cfgRelation, $db, $row, $table, display_field, PMA_DBI_fetch_assoc(), PMA_DBI_free_result(), PMA_query_as_cu(), PMA_sqlAddslashes(), e WHERE.

Referenziato da PMA_displayTable().

Questo è il grafo delle chiamate per questa funzione:

PMA_getForeigners db,
table,
column = '',
source = 'both'
 

Gets all Relations to foreign tables for a given table or optionally a given column in a table

Parametri:
string the name of the db to check for
string the name of the table to check for
string the name of the column to check for
string the source for foreign key information
Restituisce:
array db,table,column
array the list of relations settings string the URL of the page to show in case of error

public

Autore:
Mike Beck <mikebeck@users.sourceforge.net> and Marc Delisle
Emulating relations for some information_schema tables

Definizione alla linea 276 del file relation.lib.php.

Riferimenti $analyzed_sql, $cfgRelation, $db, $err_url_0, $field, $foreign, $GLOBALS, $i, $show_create_table_res, $table, PMA_DBI_fetch_assoc(), PMA_DBI_fetch_row(), PMA_DBI_free_result(), PMA_DBI_query(), PMA_query_as_cu(), PMA_sqlAddslashes(), e WHERE.

Referenziato da PMA_displayTable(), PMA_exportStructure(), e PMA_getTableComments().

Questo è il grafo delle chiamate per questa funzione:

PMA_getHistory username  ) 
 

Gets a SQL history entry

Parametri:
string the username
array the list of relations settings

Restituisce:
array list of history items
public

Definizione alla linea 721 del file relation.lib.php.

Riferimenti $cfgRelation, $row, db, PMA_DBI_fetch_assoc(), PMA_DBI_free_result(), PMA_query_as_cu(), PMA_sqlAddslashes(), table, e WHERE.

Questo è il grafo delle chiamate per questa funzione:

PMA_getRelationsParam verbose = FALSE  ) 
 

Defines the relation parameters for the current user just a copy of the functions used for relations ;-) but added some stuff to check what will work

Parametri:
boolean whether to check validity of settings or not
Restituisce:
array the relation parameters for the current user
array the list of settings for servers integer the id of the current server string the URL of the page to show in case of error string the name of the current db string the name of the current table array configuration infos about the relations stuff

public

Autore:
Mike Beck <mikebeck@users.sourceforge.net>

Definizione alla linea 65 del file relation.lib.php.

Riferimenti $cfg, $cfgRelation, $db, $err_url_0, $GLOBALS, $i, $table, a, color, colspan, db, nbsp, PMA_DBI_fetch_row(), PMA_DBI_free_result(), PMA_query_as_cu(), table, e td.

Questo è il grafo delle chiamate per questa funzione:

PMA_handleSlashes val  ) 
 

Adds/removes slashes if required

Parametri:
string the string to slash
Restituisce:
string the slashed string
public

Definizione alla linea 530 del file relation.lib.php.

Riferimenti $val, e PMA_sqlAddslashes().

Questo è il grafo delle chiamate per questa funzione:

PMA_purgeHistory username  ) 
 

Set a SQL history entry

Parametri:
string the name of the db
string the name of the table
string the username
string the sql query
array the list of relations settings array global phpMyAdmin configuration

Restituisce:
boolean true
public

Definizione alla linea 761 del file relation.lib.php.

Riferimenti $cfg, $cfgRelation, $i, $row, PMA_DBI_fetch_row(), PMA_DBI_free_result(), PMA_query_as_cu(), e WHERE.

Questo è il grafo delle chiamate per questa funzione:

PMA_query_as_cu sql,
show_error = TRUE,
options = 0
 

Executes a query as controluser if possible, otherwise as normal user

Parametri:
string the query to execute
boolean whether to display SQL error messages or not
Restituisce:
integer the result id
string the URL of the page to show in case of error string the name of db to come back to resource the resource id of DB connect as controluser array configuration infos about the relations stuff

public

Autore:
Mike Beck <mikebeck@users.sourceforge.net>

Definizione alla linea 26 del file relation.lib.php.

Riferimenti $cfgRelation, $db, $err_url_0, $result, $sql, db, PMA_DBI_query(), PMA_DBI_select_db(), e PMA_DBI_try_query().

Referenziato da PMA_duplicate_table_info(), PMA_getComments(), PMA_getDisplayField(), PMA_getForeigners(), PMA_getHistory(), PMA_getMIME(), PMA_getRelationsParam(), PMA_purgeHistory(), PMA_relationsCleanupColumn(), PMA_relationsCleanupDatabase(), PMA_relationsCleanupTable(), PMA_setComment(), PMA_setHistory(), e PMA_setMIME().

Questo è il grafo delle chiamate per questa funzione:

PMA_setComment db,
table,
col,
comment,
removekey = '',
mode = 'auto'
 

Set a single comment to a certain value.

Parametri:
string the name of the db
string the name of the table (may be empty in case of a db comment)
string the name of the column
string the value of the column
string (optional) if a column is renamed, this is the name of the former key which will get deleted
string whether we set pmadb comments, native comments or both
Restituisce:
boolean true, if comment-query was made.
array the list of relations settings

public

Definizione alla linea 550 del file relation.lib.php.

Riferimenti $analyzed_sql, $cfgRelation, $col, $db, $field, $key, $query, $row, $show_create_table_res, $table, $test_rs, $types, $upd_query, $upd_rs, PMA_DBI_fetch_assoc(), PMA_DBI_fetch_row(), PMA_DBI_free_result(), PMA_DBI_get_fields(), PMA_DBI_num_rows(), PMA_DBI_query(), PMA_DBI_try_query(), PMA_query_as_cu(), PMA_sqlAddslashes(), e WHERE.

Referenziato da PMA_getComments().

Questo è il grafo delle chiamate per questa funzione:

PMA_setHistory db,
table,
username,
sqlquery
 

Set a SQL history entry

Parametri:
string the name of the db
string the name of the table
string the username
string the sql query
array the list of relations settings

Restituisce:
boolean true
public

Definizione alla linea 692 del file relation.lib.php.

Riferimenti $cfgRelation, $db, $table, db, PMA_query_as_cu(), PMA_sqlAddslashes(), e table.

Questo è il grafo delle chiamate per questa funzione:


Generato il Thu Jan 19 15:26:26 2006 per TYPO3 versione 3.8.1 da  doxygen 1.4.6