Merge pull request #745 from Tithugues/phpdoc

Phpdoc update
This commit is contained in:
Madhura Jayaratne 2013-11-09 08:08:33 -08:00
commit 243cab4100
16 changed files with 71 additions and 77 deletions

View File

@ -170,7 +170,7 @@ class PMA_DisplayResults
*
* @param string $property name of the property
*
* @return if property exist, value of the relavant property
* @return mixed|void if property exist, value of the relavant property
*/
public function __get($property)
{
@ -184,7 +184,7 @@ class PMA_DisplayResults
* Set values for any property of this class
*
* @param string $property name of the property
* @param any $value value to set
* @param mixed $value value to set
*
* @return void
*/
@ -986,11 +986,11 @@ class PMA_DisplayResults
* @param string $sort_direction sort direction
* @param boolean $is_limited_display with limited operations or not
*
* @return string html content
* @return string html content
*
* @access private
* @access private
*
* @see getTable()
* @see getTable()
*/
private function _getTableHeaders(
&$is_display, $analyzed_sql = '',
@ -4196,11 +4196,11 @@ class PMA_DisplayResults
* @param string $dir _left / _right
* @param array $is_display display mode
*
* @return $checkBoxes_html html content
* @return String $checkBoxes_html html content
*
* @access private
* @access private
*
* @see _getVerticalTable()
* @see _getVerticalTable()
*/
private function _getCheckBoxesForMultipleRowOperations($dir, $is_display)
{
@ -5960,12 +5960,12 @@ class PMA_DisplayResults
*
* @param string $buffer String to process
*
* @return Escaped and cleaned up text suitable for html.
* @return String Escaped and cleaned up text suitable for html.
*
* @access private
* @access private
*
* @see _getDataCellForBlobField(), _getRowData(),
* _handleNonPrintableContents()
* @see _getDataCellForBlobField(), _getRowData(),
* _handleNonPrintableContents()
*/
private function _mimeDefaultFunction($buffer)
{
@ -5988,7 +5988,7 @@ class PMA_DisplayResults
* @param string $binary_or_blob binary' or 'blob'
* @param int $hexlength optional, get substring
*
* @return Displayable version of the binary string
* @return String Displayable version of the binary string
*
* @access private
*
@ -6019,4 +6019,5 @@ class PMA_DisplayResults
return $content;
}
}
?>

View File

@ -33,7 +33,7 @@ abstract class PMA_List extends ArrayObject
/**
* returns item only if there is only one in the list
*
* @return single item
* @return PMA_List single item
*/
public function getSingleItem()
{

View File

@ -61,7 +61,6 @@ class PMA_Theme_Manager
* Constructor for Theme Manager class
*
* @access public
* @return void
*/
public function __construct()
{
@ -114,7 +113,7 @@ class PMA_Theme_Manager
* Initialise the class
*
* @access public
* @return void
* @return boolean|void
*/
public function init()
{

View File

@ -596,10 +596,10 @@ class PMA_Util
*
* @return mixed
*
* @global string the curent table
* @global string the current db
* @global string $table the curent table
* @global string $db the current db
*
* @access public
* @access public
*/
public static function mysqlDie(
$error_message = '', $the_query = '',
@ -2047,10 +2047,9 @@ class PMA_Util
*
* @return void
*
* @global string path to current script
* @global boolean flag whether any special variable was required
* @global boolean $checked_special flag whether any special variable was required
*
* @access public
* @access public
*/
public static function checkParameters($params, $request = true)
{
@ -2092,7 +2091,7 @@ class PMA_Util
* @param array $row current row
* @param boolean $force_unique generate condition only on pk or unique
*
* @access public
* @access public
*
* @return array the calculated condition and whether condition is unique
*/
@ -2606,7 +2605,7 @@ class PMA_Util
* @param string $minimum_version of this component
* @param string $bugref bug reference for this component
*
* @return void
* @return String
*/
public static function getExternalBug(
$functionality, $component, $minimum_version, $bugref
@ -3201,14 +3200,14 @@ class PMA_Util
* Formats user string, expanding @VARIABLES@, accepting strftime format
* string.
*
* @param string $string Text where to do expansion.
* @param function $escape Function to call for escaping variable values.
* @param string $string Text where to do expansion.
* @param array|string $escape Function to call for escaping variable values.
* Can also be an array of:
* - the escape method name
* - the class that contains the method
* - location of the class (for inclusion)
* @param array $updates Array with overrides for default parameters
* (obtained from GLOBALS).
* @param array $updates Array with overrides for default parameters
* (obtained from GLOBALS).
*
* @return string
*/
@ -3308,7 +3307,7 @@ class PMA_Util
*
* @param string $max_upload_size maximum upload size
*
* @return void
* @return String
*/
public static function getBrowseUploadFileBlock($max_upload_size)
{
@ -3338,7 +3337,7 @@ class PMA_Util
* @param array $import_list array of import plugins
* @param string $uploaddir upload directory
*
* @return void
* @return String
*/
public static function getSelectUploadFileBlock($import_list, $uploaddir)
{
@ -3938,7 +3937,7 @@ class PMA_Util
/**
* Prepare HTML code for display button.
*
* @return void
* @return String
*/
public static function getButton()
{
@ -4156,7 +4155,7 @@ class PMA_Util
/**
* Returns information with latest version from phpmyadmin.net
*
* @return JSON decoded object with the data
* @return String JSON decoded object with the data
*/
public static function getLatestVersion()
{
@ -4337,4 +4336,5 @@ class PMA_Util
}
}
}
?>

View File

@ -23,8 +23,6 @@ class PMA_Navigation
{
/**
* Initialises the class
*
* @return void
*/
public function __construct()
{

View File

@ -20,7 +20,7 @@ class PMA_NavigationHeader
/**
* Renders the navigation
*
* @return void
* @return String HTML
*/
public function getDisplay()
{
@ -121,15 +121,15 @@ class PMA_NavigationHeader
/**
* Renders a single link for the top of the navigation panel
*
* @param string $link The url for the link
* @param bool $showText Whether to show the text or to
* only use it for title attributes
* @param string $text The text to display and use for title attributes
* @param bool $showIcon Whether to show the icon
* @param string $icon The filename of the icon to show
* @param string $linkId Value to use for the ID attribute
* @param string $disableAjax Whether to disable ajax page loading for this link
* @param string $linkTarget The name of the target frame for the link
* @param string $link The url for the link
* @param bool $showText Whether to show the text or to
* only use it for title attributes
* @param string $text The text to display and use for title attributes
* @param bool $showIcon Whether to show the icon
* @param string $icon The filename of the icon to show
* @param string $linkId Value to use for the ID attribute
* @param boolean $disableAjax Whether to disable ajax page loading for this link
* @param string $linkTarget The name of the target frame for the link
*
* @return string HTML code for one link
*/

View File

@ -83,8 +83,6 @@ class PMA_NavigationTree
/**
* Initialises the class
*
* @return void
*/
public function __construct()
{
@ -994,7 +992,7 @@ class PMA_NavigationTree
/**
* Makes some nodes visible based on the which node is active
*
* @return nothing
* @return void
*/
private function _setVisibility()
{

View File

@ -80,7 +80,7 @@ class PMA_NodeFactory
* @param bool $is_group Whether this object has been created
* while grouping nodes
*
* @return string
* @return mixed
*/
public static function getInstance(
$class = 'Node',

View File

@ -139,7 +139,7 @@ class Node
*
* @param Node $child A child node
*
* @return nothing
* @return void
*/
public function addChild($child)
{
@ -180,7 +180,7 @@ class Node
*
* @param string $name The name of child to be removed
*
* @return nothing
* @return void
*/
public function removeChild($name)
{
@ -430,7 +430,7 @@ class Node
/**
* Returns HTML for control buttons displayed infront of a node
*
* @return HTML for control buttons
* @return String HTML for control buttons
*/
public function getHtmlForControlButtons()
{

View File

@ -289,7 +289,7 @@ class Node_Database extends Node
/**
* Returns HTML for show hidden button displayed infront of database node
*
* @return HTML for show hidden button
* @return String HTML for show hidden button
*/
public function getHtmlForControlButtons()
{

View File

@ -19,7 +19,7 @@ abstract class Node_DatabaseChild extends Node
/**
* Returns HTML for hide button displayed infront of the database child node
*
* @return HTML for hide button
* @return String HTML for hide button
*/
public function getHtmlForControlButtons()
{

View File

@ -18,8 +18,6 @@ class Node_Function_Container extends Node
{
/**
* Initialises the class
*
* @return Node_Column_Container
*/
public function __construct()
{

View File

@ -63,9 +63,9 @@ class AuthenticationCookie extends AuthenticationPlugin
*
* this function MUST exit/quit the application
*
* @global string the last connection error
* @global string $conn_error the last connection error
*
* @return void
* @return boolean|void
*/
public function auth()
{

View File

@ -303,7 +303,7 @@ function PMA_getColumnNameInColumnDropSql($sql)
*
* @param string $db database name
* @param string $table table name
* @param string $fields_meta meta fields
* @param array $fields_meta meta fields
*
* @return boolean whether the result set contains a unique key
*/
@ -1826,7 +1826,7 @@ function PMA_getBookmarkCreatedMessage()
* @param object $result result of the executed query
* @param array $analyzed_sql_results analyzed sql results
*
* @return type
* @return String
*/
function PMA_getHtmlForSqlQueryResultsTable($sql_data, $displayResultsObject, $db,
$goto, $pmaThemeImage, $url_query, $disp_mode, $sql_limit_to_append,
@ -1931,7 +1931,7 @@ function PMA_getMessageIfMissingColumnIndex($table, $db, $editable, $disp_mode)
* database structure page.
* @param string $db current database
*
* @return void
* @return string
*/
function PMA_getHtmlForIndexesProblems($query_type, $selected, $db)
{

View File

@ -53,7 +53,7 @@ if ($cfg['SQLValidator']['use'] == true) {
*
* @return string Validator result string
*
* @global array The PMA configuration array
* @global array $cfg The PMA configuration array
*/
function PMA_validateSQL($sql)
{

View File

@ -133,11 +133,11 @@ function PMA_getAvailableMIMEtypes()
/**
* Returns the description of the transformation
*
* @param string $file transformation file
* @param string $html_formatted whether the description should be formatted
* as HTML
* @param string $file transformation file
* @param boolean $html_formatted whether the description should be formatted
* as HTML
*
* @return the description of the transformation
* @return String the description of the transformation
*/
function PMA_getTransformationDescription($file, $html_formatted = true)
{
@ -153,11 +153,11 @@ function PMA_getTransformationDescription($file, $html_formatted = true)
/**
* Gets the mimetypes for all columns of a table
*
* @param string $db the name of the db to check for
* @param string $table the name of the table to check for
* @param string $strict whether to include only results having a mimetype set
* @param string $db the name of the db to check for
* @param string $table the name of the table to check for
* @param boolean $strict whether to include only results having a mimetype set
*
* @access public
* @access public
*
* @return array [field_name][field_key] = field_value
*/
@ -232,14 +232,14 @@ function PMA_getMIME($db, $table, $strict = false)
/**
* Set a single mimetype to a certain value.
*
* @param string $db the name of the db
* @param string $table the name of the table
* @param string $key the name of the column
* @param string $mimetype the mimetype of the column
* @param string $transformation the transformation of the column
* @param string $transformation_options the transformation options of the column
* @param string $forcedelete force delete, will erase any existing
* comments for this column
* @param string $db the name of the db
* @param string $table the name of the table
* @param string $key the name of the column
* @param string $mimetype the mimetype of the column
* @param string $transformation the transformation of the column
* @param string $transformation_options the transformation options of the column
* @param boolean $forcedelete force delete, will erase any existing
* comments for this column
*
* @access public
*