[ Index ] |
|
Code source de phpMyAdmin 2.10.3 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 1013 lignes (42 kb) |
Inclus ou requis: | 15 fois |
Référencé: | 0 fois |
Nécessite: | 2 fichiers libraries/relation.lib.php libraries/export/sql.php |
PMA_Table:: (22 méthodes):
__construct()
__toString()
getLastError()
getLastMessage()
setName()
getName()
setDbName()
getDbName()
getFullName()
isView()
set()
get()
loadStructure()
PMA_Table()
_isView()
generateFieldSpec()
countRecords()
generateAlter()
duplicateInfo()
moveCopy()
isValidName()
rename()
__construct($table_name, $db_name) X-Ref |
Constructor param: string $table_name table name param: string $db_name database name |
__toString() X-Ref |
getLastError() X-Ref |
Pas de description |
getLastMessage() X-Ref |
Pas de description |
setName($table_name) X-Ref |
sets table anme param: string $table_name new table name |
getName($quoted = false) X-Ref |
returns table name param: boolean wether to quote name with backticks `` return: string table name |
setDbName($db_name) X-Ref |
sets database name for this table param: string $db_name |
getDbName($quoted = false) X-Ref |
returns database name for this table param: boolean wether to quote name with backticks `` return: string database name for this table |
getFullName($quoted = false) X-Ref |
returns full name for table, including database name param: boolean wether to quote name with backticks `` |
isView($db = null, $table = null) X-Ref |
Pas de description |
set($param, $value) X-Ref |
sets given $value for given $param param: string param name param: mixed param value |
get($param) X-Ref |
returns value for given setting/param param: string name for value to return return: mixed value for $param |
loadStructure() X-Ref |
loads structure data |
PMA_Table($table_name, $db_name) X-Ref |
old PHP 4style constructor |
_isView($db, $table) X-Ref |
Checks if this "table" is a view param: string the database name param: string the table name return: boolean whether this is a view |
generateFieldSpec($name, $type, $length = '', $attribute = '',$collation = '', $null = false, $default = '',$default_current_timestamp = false, $extra = '', $comment = '',&$field_primary, $index, $default_orig = false) X-Ref |
generates column/field specification for ALTER or CREATE TABLE syntax param: string $name name param: string $type type ('INT', 'VARCHAR', 'BIT', ...) param: string $length length ('2', '5,2', '', ...) param: string $attribute param: string $collation param: string $null with 'NULL' or 'NOT NULL' param: string $default default value param: boolean $default_current_timestamp whether default value is param: string $extra 'AUTO_INCREMENT' param: string $comment field comment param: array &$field_primary list of fields for PRIMARY KEY param: string $index param: string $default_orig return: string field specification |
countRecords($db, $table, $ret = false, $force_exact = false) X-Ref |
Counts and returns (or displays) the number of records in a table Revision 13 July 2001: Patch for limiting dump size from vinay@sanisoft.com & girish@sanisoft.com param: string the current database name param: string the current table name param: boolean whether to retain or to displays the result param: boolean whether to force an exact count return: mixed the number of records if retain is required, true else |
generateAlter($oldcol, $newcol, $type, $length,$attribute, $collation, $null, $default, $default_current_timestamp,$extra, $comment='', $default_orig) X-Ref |
duplicateInfo($work, $pma_table, $get_fields, $where_fields,$new_fields) X-Ref |
Inserts existing entries in a PMA_* table by reading a value from an old entry author: Garvin Hicking <me@supergarv.de> param: string The array index, which Relation feature to check param: string The array index, which PMA-table to update param: array Which fields will be SELECT'ed from the old entry param: array Which fields will be used for the WHERE query param: array Which fields will be used as new VALUES. These are the important |
moveCopy($source_db, $source_table, $target_db, $target_table, $what, $move, $mode) X-Ref |
Copies or renames table author: Michal Cihar <michal@cihar.com> |
isValidName($table_name) X-Ref |
checks if given name is a valid table name, currently if not empty, trailing spaces, '.', '/' and '\' param: string $table_name name to check return: boolean whether the string is valid or not |
rename($new_name, $new_db = null) X-Ref |
renames table param: string new table name param: string new database name return: boolean success |
Généré le : Mon Nov 26 15:18:20 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |