Skip to content

Commit

Permalink
Merge pull request phpmyadmin#745 from Tithugues/phpdoc
Browse files Browse the repository at this point in the history
Phpdoc update
  • Loading branch information
madhuracj committed Nov 9, 2013
2 parents 971aec3 + ca8eb08 commit 243cab4
Show file tree
Hide file tree
Showing 16 changed files with 71 additions and 77 deletions.
27 changes: 14 additions & 13 deletions libraries/DisplayResults.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -184,7 +184,7 @@ public function __get($property)
* 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
*/
Expand Down Expand Up @@ -986,11 +986,11 @@ private function _getAdditionalFieldsForTableNavigation(
* @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 = '',
Expand Down Expand Up @@ -4196,11 +4196,11 @@ private function _getOperationLinksForVerticleTable($operation)
* @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)
{
Expand Down Expand Up @@ -5960,12 +5960,12 @@ private function _getCheckboxAndLinks(
*
* @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)
{
Expand All @@ -5988,7 +5988,7 @@ private function _mimeDefaultFunction($buffer)
* @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
*
Expand Down Expand Up @@ -6019,4 +6019,5 @@ private function _displayBinaryAsPrintable(
return $content;
}
}

?>
2 changes: 1 addition & 1 deletion libraries/List.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __construct(
/**
* returns item only if there is only one in the list
*
* @return single item
* @return PMA_List single item
*/
public function getSingleItem()
{
Expand Down
3 changes: 1 addition & 2 deletions libraries/Theme_Manager.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ class PMA_Theme_Manager
* Constructor for Theme Manager class
*
* @access public
* @return void
*/
public function __construct()
{
Expand Down Expand Up @@ -114,7 +113,7 @@ public function setThemePerServer($per_server)
* Initialise the class
*
* @access public
* @return void
* @return boolean|void
*/
public function init()
{
Expand Down
32 changes: 16 additions & 16 deletions libraries/Util.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -596,10 +596,10 @@ public static function showHint($message)
*
* @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 = '',
Expand Down Expand Up @@ -2047,10 +2047,9 @@ public static function flipstring($string, $Separator = "<br />\n")
*
* @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)
{
Expand Down Expand Up @@ -2092,7 +2091,7 @@ public static function checkParameters($params, $request = true)
* @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
*/
Expand Down Expand Up @@ -2606,7 +2605,7 @@ public static function getDbLink($database = null)
* @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
Expand Down Expand Up @@ -3201,14 +3200,14 @@ public static function getTitleForTarget($target)
* 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
*/
Expand Down Expand Up @@ -3308,7 +3307,7 @@ public static function expandUserString(
*
* @param string $max_upload_size maximum upload size
*
* @return void
* @return String
*/
public static function getBrowseUploadFileBlock($max_upload_size)
{
Expand Down Expand Up @@ -3338,7 +3337,7 @@ public static function getBrowseUploadFileBlock($max_upload_size)
* @param array $import_list array of import plugins
* @param string $uploaddir upload directory
*
* @return void
* @return String
*/
public static function getSelectUploadFileBlock($import_list, $uploaddir)
{
Expand Down Expand Up @@ -3938,7 +3937,7 @@ public static function analyzeLimitClause($limit_clause)
/**
* Prepare HTML code for display button.
*
* @return void
* @return String
*/
public static function getButton()
{
Expand Down Expand Up @@ -4156,7 +4155,7 @@ public static function getMenuTabList($level = null)
/**
* 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()
{
Expand Down Expand Up @@ -4337,4 +4336,5 @@ public static function addMicroseconds($value)
}
}
}

?>
2 changes: 0 additions & 2 deletions libraries/navigation/Navigation.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ class PMA_Navigation
{
/**
* Initialises the class
*
* @return void
*/
public function __construct()
{
Expand Down
20 changes: 10 additions & 10 deletions libraries/navigation/NavigationHeader.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class PMA_NavigationHeader
/**
* Renders the navigation
*
* @return void
* @return String HTML
*/
public function getDisplay()
{
Expand Down Expand Up @@ -121,15 +121,15 @@ private function _logo()
/**
* 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
*/
Expand Down
4 changes: 1 addition & 3 deletions libraries/navigation/NavigationTree.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ class PMA_NavigationTree

/**
* Initialises the class
*
* @return void
*/
public function __construct()
{
Expand Down Expand Up @@ -994,7 +992,7 @@ private function _renderNode($node, $recursive = -1, $class = '')
/**
* Makes some nodes visible based on the which node is active
*
* @return nothing
* @return void
*/
private function _setVisibility()
{
Expand Down
2 changes: 1 addition & 1 deletion libraries/navigation/NodeFactory.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private static function _checkFile($class)
* @param bool $is_group Whether this object has been created
* while grouping nodes
*
* @return string
* @return mixed
*/
public static function getInstance(
$class = 'Node',
Expand Down
6 changes: 3 additions & 3 deletions libraries/navigation/Nodes/Node.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function __construct($name, $type = Node::OBJECT, $is_group = false)
*
* @param Node $child A child node
*
* @return nothing
* @return void
*/
public function addChild($child)
{
Expand Down Expand Up @@ -180,7 +180,7 @@ public function getChild($name, $real_name = false)
*
* @param string $name The name of child to be removed
*
* @return nothing
* @return void
*/
public function removeChild($name)
{
Expand Down Expand Up @@ -430,7 +430,7 @@ private function _getWhereClause($searchClause = '')
/**
* Returns HTML for control buttons displayed infront of a node
*
* @return HTML for control buttons
* @return String HTML for control buttons
*/
public function getHtmlForControlButtons()
{
Expand Down
2 changes: 1 addition & 1 deletion libraries/navigation/Nodes/Node_Database.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ public function getData($type, $pos, $searchClause = '')
/**
* 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()
{
Expand Down
2 changes: 1 addition & 1 deletion libraries/navigation/Nodes/Node_DatabaseChild.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
2 changes: 0 additions & 2 deletions libraries/navigation/Nodes/Node_Function_Container.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ class Node_Function_Container extends Node
{
/**
* Initialises the class
*
* @return Node_Column_Container
*/
public function __construct()
{
Expand Down
4 changes: 2 additions & 2 deletions libraries/plugins/auth/AuthenticationCookie.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
6 changes: 3 additions & 3 deletions libraries/sql.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion libraries/sqlvalidator.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
*
* @return string Validator result string
*
* @global array The PMA configuration array
* @global array $cfg The PMA configuration array
*/
function PMA_validateSQL($sql)
{
Expand Down
Loading

0 comments on commit 243cab4

Please sign in to comment.