diff --git a/error.php b/error.php
index e0abb4457..674d08e0f 100644
--- a/error.php
+++ b/error.php
@@ -4,9 +4,12 @@
* phpMyAdmin fatal error display page
*
* @version $Id$
+ * @package phpMyAdmin
*/
-/* Input sanitizing */
+/**
+ * Input sanitizing.
+ */
require_once './libraries/sanitizing.lib.php';
/* Get variables */
diff --git a/export.php b/export.php
index 666cbd068..a4681a6de 100644
--- a/export.php
+++ b/export.php
@@ -3,6 +3,7 @@
/**
* @todo too much die here, or?
* @version $Id$
+ * @package phpMyAdmin
*/
/**
@@ -362,7 +363,7 @@ if (!$save_on_server) {
} else {
header('Pragma: no-cache');
// test case: exporting a database into a .gz file with Safari
- // would produce files not having the current time
+ // would produce files not having the current time
// (added this header for Safari but should not harm other browsers)
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
}
diff --git a/import.php b/import.php
index 5f9b79a5c..a361b1ba7 100644
--- a/import.php
+++ b/import.php
@@ -5,6 +5,7 @@
*
* @uses PMA_Bookmark_getList()
* @version $Id$
+ * @package phpMyAdmin
*/
/**
diff --git a/index.php b/index.php
index 4ea0a4f36..cb8947289 100644
--- a/index.php
+++ b/index.php
@@ -26,6 +26,7 @@
* @uses time()
* @uses PMA_getenv()
* @uses header() to send charset
+ * @package phpMyAdmin
*/
/**
diff --git a/libraries/Error.class.php b/libraries/Error.class.php
index 1b8b88814..6b737cb40 100644
--- a/libraries/Error.class.php
+++ b/libraries/Error.class.php
@@ -4,6 +4,7 @@
* Holds class PMA_Error
*
* @version $Id$
+ * @package phpMyAdmin
*/
/**
@@ -14,6 +15,7 @@ require_once './libraries/Message.class.php';
/**
* a single error
*
+ * @package phpMyAdmin
*/
class PMA_Error extends PMA_Message
{
diff --git a/libraries/Error_Handler.class.php b/libraries/Error_Handler.class.php
index 4e4b2eab5..b260b2f60 100644
--- a/libraries/Error_Handler.class.php
+++ b/libraries/Error_Handler.class.php
@@ -4,6 +4,7 @@
* Holds class PMA_Error_Handler
*
* @version $Id$
+ * @package phpMyAdmin
*/
/**
@@ -14,6 +15,7 @@ require_once './libraries/Error.class.php';
/**
* handling errors
*
+ * @package phpMyAdmin
*/
class PMA_Error_Handler
{
diff --git a/libraries/File.class.php b/libraries/File.class.php
index cac985603..03e70c529 100644
--- a/libraries/File.class.php
+++ b/libraries/File.class.php
@@ -12,8 +12,8 @@
* @todo replace error messages with localized string
* @todo when uploading a file into a blob field, should we also consider using
* chunks like in import? UPDATE `table` SET `field` = `field` + [chunk]
+ * @package phpMyAdmin
*/
-
class PMA_File
{
/**
diff --git a/libraries/Index.class.php b/libraries/Index.class.php
index aaed558c7..ee65ccd28 100644
--- a/libraries/Index.class.php
+++ b/libraries/Index.class.php
@@ -10,6 +10,7 @@
/**
* @since phpMyAdmin 3.0.0
*
+ * @package phpMyAdmin
*/
class PMA_Index
{
@@ -582,6 +583,9 @@ class PMA_Index
}
}
+/**
+ * @package phpMyAdmin
+ */
class PMA_Index_Column
{
/**
diff --git a/libraries/List.class.php b/libraries/List.class.php
index 07b4f847b..029b6fc3d 100644
--- a/libraries/List.class.php
+++ b/libraries/List.class.php
@@ -4,12 +4,14 @@
* hold the PMA_List base class
*
* @version $Id$
+ * @package phpMyAdmin
*/
/**
* @todo add caching
* @since phpMyAdmin 2.9.10
* @abstract
+ * @package phpMyAdmin
*/
abstract class PMA_List extends ArrayObject
{
diff --git a/libraries/List_Database.class.php b/libraries/List_Database.class.php
index ddb141dad..df3a6b403 100644
--- a/libraries/List_Database.class.php
+++ b/libraries/List_Database.class.php
@@ -4,6 +4,7 @@
* holds the PMA_List_Database class
*
* @version $Id$
+ * @package phpMyAdmin
*/
/**
@@ -23,6 +24,7 @@ require_once './libraries/List.class.php';
* @todo ? support --skip-showdatabases and user has only global rights
* @access public
* @since phpMyAdmin 2.9.10
+ * @package phpMyAdmin
*/
/*public*/ class PMA_List_Database extends PMA_List
{
@@ -46,7 +48,7 @@ require_once './libraries/List.class.php';
* @access protected
*/
protected $_show_databases_disabled = false;
-
+
/**
* @var string command to retrieve databases from server
*/
@@ -111,11 +113,11 @@ require_once './libraries/List.class.php';
if ($this->_show_databases_disabled) {
return array();
}
-
+
if (null !== $like_db_name) {
$command = "SHOW DATABASES LIKE '" . $like_db_name . "'";
} elseif (null === $this->_command) {
- $command = str_replace('#user#', $GLOBALS['cfg']['Server']['user'],
+ $command = str_replace('#user#', $GLOBALS['cfg']['Server']['user'],
$GLOBALS['cfg']['Server']['ShowDatabasesCommand']);
$this->_command = $command;
} else {
@@ -165,7 +167,7 @@ require_once './libraries/List.class.php';
}
$this->exchangeArray($items);
}
-
+
$this->_checkHideDatabase();
}
@@ -197,7 +199,7 @@ require_once './libraries/List.class.php';
if (! is_array($GLOBALS['cfg']['Server']['only_db'])) {
return false;
}
-
+
$items = array();
foreach ($GLOBALS['cfg']['Server']['only_db'] as $each_only_db) {
@@ -224,7 +226,7 @@ require_once './libraries/List.class.php';
// @todo induce error, about not using wildcards with SHOW DATABASE disabled?
}
-
+
$this->exchangeArray($items);
return true;
@@ -313,7 +315,7 @@ require_once './libraries/List.class.php';
'disp_name' => $disp_name,
'comment' => $db_tooltip,
);
-
+
if ($GLOBALS['cfg']['Server']['CountTables']) {
$dbgroups[$group][$db]['num_tables'] = PMA_getTableCount($db);
}
@@ -371,7 +373,7 @@ require_once './libraries/List.class.php';
} else {
$return .= htmlspecialchars($db['disp_name']);
}
-
+
if (! empty($db['num_tables'])) {
$return .= ' (' . $db['num_tables'] . ')';
}
diff --git a/libraries/Message.class.php b/libraries/Message.class.php
index 50245e0cf..2c6920642 100644
--- a/libraries/Message.class.php
+++ b/libraries/Message.class.php
@@ -4,6 +4,7 @@
* Holds class PMA_Message
*
* @version $Id: Error.class.php 10738 2007-10-08 16:02:58Z cybot_tm $
+ * @package phpMyAdmin
*/
/**
@@ -47,6 +48,7 @@
* // strSomeLocaleMessage 1 strSomeMoreLocale
* // strSomeEvenMoreLocale - some final words
*
+ * @package phpMyAdmin
*/
class PMA_Message
{
diff --git a/libraries/PMA.php b/libraries/PMA.php
index b85f04c7a..4b391c2cc 100644
--- a/libraries/PMA.php
+++ b/libraries/PMA.php
@@ -1,15 +1,21 @@
controllink;
break;
}
-
+
return null;
}
-
+
/**
* magic access to protected/inaccessible members/properties
*
@@ -72,7 +78,7 @@ class PMA
break;
}
}
-
+
/**
* Accessor to PMA::$databases
*
@@ -87,7 +93,7 @@ class PMA
if (null === $this->databases) {
$this->databases = new PMA_List_Database($this->userlink, $this->controllink);
}
-
+
return $this->databases;
}
}
diff --git a/libraries/Partition.class.php b/libraries/Partition.class.php
index bf6209093..cd696338a 100644
--- a/libraries/Partition.class.php
+++ b/libraries/Partition.class.php
@@ -4,16 +4,18 @@
* Library for extracting information about the partitions
*
* @version $Id$
+ * @package phpMyAdmin
*/
/**
* base Partition Class
+ * @package phpMyAdmin
*/
class PMA_Partition
{
/**
- * returns array of partition names for a specific db/table
+ * returns array of partition names for a specific db/table
*
* @access public
* @uses PMA_DBI_fetch_result()
@@ -29,14 +31,14 @@ class PMA_Partition
}
/**
- * checks if MySQL server supports partitioning
+ * checks if MySQL server supports partitioning
*
* @static
* @staticvar boolean $have_partitioning
* @staticvar boolean $already_checked
* @access public
* @uses PMA_DBI_fetch_result()
- * @return boolean
+ * @return boolean
*/
static public function havePartitioning()
{
diff --git a/libraries/StorageEngine.class.php b/libraries/StorageEngine.class.php
index 69d51e557..5b621b9f1 100644
--- a/libraries/StorageEngine.class.php
+++ b/libraries/StorageEngine.class.php
@@ -4,6 +4,7 @@
* Library for extracting information about the available storage engines
*
* @version $Id$
+ * @package phpMyAdmin
*/
/**
@@ -21,6 +22,7 @@ define('PMA_ENGINE_DETAILS_TYPE_BOOLEAN', 3); // 'ON' or 'OFF'
/**
* base Storage Engine Class
+ * @package phpMyAdmin
*/
class PMA_StorageEngine
{
diff --git a/libraries/Table.class.php b/libraries/Table.class.php
index acb806761..6e21ced5f 100644
--- a/libraries/Table.class.php
+++ b/libraries/Table.class.php
@@ -3,16 +3,18 @@
/**
*
* @version $Id$
+ * @package phpMyAdmin
*/
/**
* @todo make use of PMA_Message and PMA_Error
+ * @package phpMyAdmin
*/
class PMA_Table
{
static $cache = array();
-
+
/**
* @var string table name
*/
@@ -248,10 +250,10 @@ class PMA_Table
$comment = strtoupper(PMA_Table::sGetStatusInfo($db, $table, 'Comment'));
return substr($comment, 0, 4) == 'VIEW';
}
-
+
static public function sGetToolTip($db, $table)
{
- return PMA_Table::sGetStatusInfo($db, $table, 'Comment')
+ return PMA_Table::sGetStatusInfo($db, $table, 'Comment')
. ' (' . PMA_Table::countRecords($db, $table, true) . ')';
}
@@ -260,11 +262,11 @@ class PMA_Table
if (! isset(PMA_Table::$cache[$db][$table]) || $force_read) {
PMA_Table::$cache[$db][$table] = PMA_DBI_fetch_single_row('SHOW TABLE STATUS FROM ' . PMA_backquote($db) . ' LIKE \'' . $table . '\'');
}
-
+
if (null === $info) {
return PMA_Table::$cache[$db][$table];
}
-
+
if (! isset(PMA_Table::$cache[$db][$table][$info]) || $force_read) {
PMA_Table::$cache[$db][$table] = PMA_DBI_fetch_single_row('SHOW TABLE STATUS FROM ' . PMA_backquote($db) . ' LIKE \'' . $table . '\'');
}
@@ -327,7 +329,7 @@ class PMA_Table
$query .= ' NOT NULL';
}
}
-
+
switch ($default_type) {
case 'USER_DEFINED' :
if ($is_timestamp && $default_value === '0') {
@@ -352,7 +354,7 @@ class PMA_Table
if (!empty($extra)) {
$query .= ' ' . $extra;
// Force an auto_increment field to be part of the primary key
- // even if user did not tick the PK box;
+ // even if user did not tick the PK box;
if ($extra == 'AUTO_INCREMENT') {
$primary_cnt = count($field_primary);
if (1 == $primary_cnt) {
@@ -401,25 +403,25 @@ class PMA_Table
*
* @access public
*/
- static public function countRecords($db, $table, $ret = false,
+ static public function countRecords($db, $table, $ret = false,
$force_exact = false, $is_view = null)
{
if (isset(PMA_Table::$cache[$db][$table]['ExactRows'])) {
$row_count = PMA_Table::$cache[$db][$table]['ExactRows'];
} else {
$row_count = false;
-
+
if (null === $is_view) {
$is_view = PMA_Table::isView($db, $table);
}
-
+
if (! $force_exact) {
if (! isset(PMA_Table::$cache[$db][$table]['Rows']) && ! $is_view) {
PMA_Table::$cache[$db][$table] = PMA_DBI_fetch_single_row('SHOW TABLE STATUS FROM ' . PMA_backquote($db) . ' LIKE \'' . PMA_sqlAddslashes($table, true) . '\'');
}
$row_count = PMA_Table::$cache[$db][$table]['Rows'];
}
-
+
// for a VIEW, $row_count is always false at this point
if (false === $row_count || $row_count < $GLOBALS['cfg']['MaxExactCount']) {
if (! $is_view) {
@@ -431,7 +433,7 @@ class PMA_Table
// count could bring down a server, so we offer an
// alternative: setting MaxExactCountViews to 0 will bypass
// completely the record counting for views
-
+
if ($GLOBALS['cfg']['MaxExactCountViews'] == 0) {
$row_count = 0;
} else {
diff --git a/libraries/dbg/setup.php b/libraries/dbg/setup.php
index 233172fe7..5e0683ac0 100644
--- a/libraries/dbg/setup.php
+++ b/libraries/dbg/setup.php
@@ -2,6 +2,7 @@
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* @version $Id$
+ * @package phpMyAdmin-DBG
*/
if (! defined('PHPMYADMIN')) {
exit;
diff --git a/libraries/display_change_password.lib.php b/libraries/display_change_password.lib.php
index 3ebff87f2..e454a4492 100644
--- a/libraries/display_change_password.lib.php
+++ b/libraries/display_change_password.lib.php
@@ -4,13 +4,16 @@
* Displays form for password change
*
* @version $Id$
+ * @package phpMyAdmin
*/
if (! defined('PHPMYADMIN')) {
exit;
}
-// loic1: autocomplete feature of IE kills the "onchange" event handler and it
-// must be replaced by the "onpropertychange" one in this case
+/**
+ * loic1: autocomplete feature of IE kills the "onchange" event handler and it
+ * must be replaced by the "onpropertychange" one in this case
+ */
$chg_evt_handler = (PMA_USR_BROWSER_AGENT == 'IE' && PMA_USR_BROWSER_VER >= 5)
? 'onpropertychange'
: 'onchange';
diff --git a/libraries/display_create_database.lib.php b/libraries/display_create_database.lib.php
index 7bf4e613b..2a2687357 100644
--- a/libraries/display_create_database.lib.php
+++ b/libraries/display_create_database.lib.php
@@ -4,6 +4,7 @@
* Displays form for creating database (if user has privileges for that)
*
* @version $Id$
+ * @package phpMyAdmin
*/
if (! defined('PHPMYADMIN')) {
exit;
diff --git a/libraries/display_create_table.lib.php b/libraries/display_create_table.lib.php
index d76a70cf8..cde2f21e2 100644
--- a/libraries/display_create_table.lib.php
+++ b/libraries/display_create_table.lib.php
@@ -23,6 +23,7 @@
* on MySQL 5.0.18.
*
* @version $Id$
+ * @package phpMyAdmin
*/
if (! defined('PHPMYADMIN')) {
exit;
diff --git a/libraries/display_export.lib.php b/libraries/display_export.lib.php
index 0d7956df8..ad07a404b 100644
--- a/libraries/display_export.lib.php
+++ b/libraries/display_export.lib.php
@@ -3,6 +3,7 @@
/**
*
* @version $Id$
+ * @package phpMyAdmin
*/
if (! defined('PHPMYADMIN')) {
exit;
diff --git a/libraries/display_import.lib.php b/libraries/display_import.lib.php
index 69d4194f2..00f515689 100644
--- a/libraries/display_import.lib.php
+++ b/libraries/display_import.lib.php
@@ -3,6 +3,7 @@
/**
*
* @version $Id$
+ * @package phpMyAdmin
*/
if (! defined('PHPMYADMIN')) {
exit;
diff --git a/libraries/display_select_lang.lib.php b/libraries/display_select_lang.lib.php
index a7a1f84be..831f8c5cc 100644
--- a/libraries/display_select_lang.lib.php
+++ b/libraries/display_select_lang.lib.php
@@ -4,6 +4,7 @@
* Code for displaying language selection
*
* @version $Id$
+ * @package phpMyAdmin
*/
if (! defined('PHPMYADMIN')) {
exit;
diff --git a/libraries/display_tbl.lib.php b/libraries/display_tbl.lib.php
index 2a0cfdaea..f1ffa4044 100644
--- a/libraries/display_tbl.lib.php
+++ b/libraries/display_tbl.lib.php
@@ -4,6 +4,7 @@
* library for displaying table with results from all sort of select queries
*
* @version $Id$
+ * @package phpMyAdmin
*/
/**
@@ -467,7 +468,7 @@ function PMA_displayTableHeaders(&$is_display, &$fields_meta, $fields_cnt = 0, $
$unsorted_sql_query = $analyzed_sql[0]['unsorted_query'];
}
// Handles the case of multiple clicks on a column's header
- // which would add many spaces before "ORDER BY" in the
+ // which would add many spaces before "ORDER BY" in the
// generated query.
$unsorted_sql_query = trim($unsorted_sql_query);
@@ -507,15 +508,15 @@ function PMA_displayTableHeaders(&$is_display, &$fields_meta, $fields_cnt = 0, $
$asc_sort = '`' . implode('` ASC, `', array_keys($index->getColumns())) . '` ASC';
$desc_sort = '`' . implode('` DESC, `', array_keys($index->getColumns())) . '` DESC';
$used_index = $used_index || $local_order == $asc_sort || $local_order == $desc_sort;
- echo '';
- echo '';
}
echo '';
@@ -588,7 +589,7 @@ function PMA_displayTableHeaders(&$is_display, &$fields_meta, $fields_cnt = 0, $
echo '';
}
- // Start of form for multi-rows edit/delete/export
+ // Start of form for multi-rows edit/delete/export
if ($is_display['del_lnk'] == 'dr' || $is_display['del_lnk'] == 'kp') {
echo '