Skip to content

Commit

Permalink
Huge PHPDoc update.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tithugues committed Nov 10, 2013
1 parent 90cc7f0 commit 464ec23
Show file tree
Hide file tree
Showing 51 changed files with 204 additions and 157 deletions.
2 changes: 1 addition & 1 deletion PMAStandard/Sniffs/Commenting/FileCommentSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ protected function processTags($commentStart, $commentEnd)
* @param PHP_CodeSniffer_CommentParser_DocElement $tagElement The doc comment
* element.
*
* @return void
* @return string|int
*/
protected function getIndentation($tagName, $tagElement)
{
Expand Down
2 changes: 1 addition & 1 deletion gis_data_editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
* @param string $variable variable to be escaped
*
* @return escaped variable
* @return string escaped variable
*/
function escape($variable)
{
Expand Down
8 changes: 5 additions & 3 deletions libraries/Advisor.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ function addRule($type, $rule)
*
* @param array $matches List of matched elements form preg_replace_callback
*
* @return String Replacement value
* @return string Replacement value
*/
private function _replaceLinkURL($matches)
{
Expand All @@ -276,7 +276,7 @@ private function _replaceLinkURL($matches)
*
* @param array $matches List of matched elements form preg_replace_callback
*
* @return String Replacement value
* @return string Replacement value
*/
private function _ruleExprEvaluateFired($matches)
{
Expand All @@ -300,7 +300,7 @@ private function _ruleExprEvaluateFired($matches)
*
* @param array $matches List of matched elements form preg_replace_callback
*
* @return String Replacement value
* @return string Replacement value
*/
private function _ruleExprEvaluateVariable($matches)
{
Expand All @@ -324,6 +324,8 @@ private function _ruleExprEvaluateVariable($matches)
* whole expr
*
* @return string result of evaluated expression
*
* @throws Exception
*/
function ruleExprEvaluate($expr, $ignoreUntil = 0)
{
Expand Down
2 changes: 1 addition & 1 deletion libraries/DatabaseInterface.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class PMA_DatabaseInterface
/**
* Constructor
*
* @param object $ext PMA_DBI_Extension object to be used for database queries
* @param PMA_DBI_Extension $ext Object to be used for database queries
*/
public function __construct(PMA_DBI_Extension $ext)
{
Expand Down
50 changes: 25 additions & 25 deletions libraries/DisplayResults.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,28 +274,28 @@ private function _setDefaultTransformations()
/**
* Set properties which were not initialized at the constructor
*
* @param type $unlim_num_rows integer the total number of rows returned by
* @param integer $unlim_num_rows the total number of rows returned by
* the SQL query without any appended
* "LIMIT" clause programmatically
* @param type $fields_meta array meta information about fields
* @param type $is_count boolean
* @param type $is_export integer
* @param type $is_func boolean
* @param type $is_analyse integer
* @param type $num_rows integer total no. of rows returned by SQL query
* @param type $fields_cnt integer total no.of fields returned by SQL query
* @param type $querytime double time taken for execute the SQL query
* @param type $pmaThemeImage string path for theme images directory
* @param type $text_dir string
* @param type $is_maint boolean
* @param type $is_explain boolean
* @param type $is_show boolean
* @param type $showtable array table definitions
* @param type $printview string
* @param type $url_query string URL query
* @param type $editable boolean whether the resutls set is editable
* @param array $fields_meta meta information about fields
* @param boolean $is_count
* @param integer $is_export
* @param boolean $is_func
* @param integer $is_analyse
* @param integer $num_rows total no. of rows returned by SQL query
* @param integer $fields_cnt total no.of fields returned by SQL query
* @param double $querytime time taken for execute the SQL query
* @param string $pmaThemeImage path for theme images directory
* @param string $text_dir
* @param boolean $is_maint
* @param boolean $is_explain
* @param boolean $is_show
* @param array $showtable table definitions
* @param string $printview
* @param string $url_query URL query
* @param boolean $editable whether the results set is editable
*
* @return void
* @return void
*
* @see sql.php
*/
Expand Down Expand Up @@ -979,12 +979,12 @@ private function _getAdditionalFieldsForTableNavigation(
/**
* Get the headers of the results table
*
* @param array &$is_display which elements to display
* @param array $analyzed_sql the analyzed query
* @param string $sort_expression sort expression
* @param string $sort_expression_nodirection sort expression without direction
* @param string $sort_direction sort direction
* @param boolean $is_limited_display with limited operations or not
* @param array &$is_display which elements to display
* @param array|string $analyzed_sql the analyzed query
* @param string $sort_expression sort expression
* @param string $sort_expression_nodirection sort expression without direction
* @param string $sort_direction sort direction
* @param boolean $is_limited_display with limited operations or not
*
* @return string html content
*
Expand Down
1 change: 0 additions & 1 deletion libraries/PDF.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ class PMA_PDF extends TCPDF
* temporary data on filesystem (slower).
* @param boolean $pdfa If TRUE set the document to PDF/A mode.
*
* @return void
* @access public
*/
public function __construct($orientation = 'P', $unit = 'mm', $format = 'A4',
Expand Down
4 changes: 2 additions & 2 deletions libraries/Util.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2914,7 +2914,7 @@ public static function cacheUnset($var, $server = 0)
* function because in PHP, decbin() supports only 32 bits
* on 32-bit servers
*
* @param numeric $value coming from a BIT field
* @param number $value coming from a BIT field
* @param integer $length length
*
* @return string the printable value
Expand Down Expand Up @@ -3917,7 +3917,7 @@ public static function getServerType()
*
* @param string $limit_clause limit clause
*
* @return array Start and length attributes of the limit clause
* @return array|void Start and length attributes of the limit clause
*/
public static function analyzeLimitClause($limit_clause)
{
Expand Down
8 changes: 4 additions & 4 deletions libraries/bookmark.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function PMA_Bookmark_getParams()
*
* @access public
*
* @global resource the controluser db connection handle
* @global resource $controllink the controluser db connection handle
*/
function PMA_Bookmark_getList($db)
{
Expand Down Expand Up @@ -105,7 +105,7 @@ function PMA_Bookmark_getList($db)
*
* @access public
*
* @global resource the controluser db connection handle
* @global resource $controllink the controluser db connection handle
*
*/
function PMA_Bookmark_get($db, $id, $id_field = 'id', $action_bookmark_all = false,
Expand Down Expand Up @@ -148,7 +148,7 @@ function PMA_Bookmark_get($db, $id, $id_field = 'id', $action_bookmark_all = fal
*
* @access public
*
* @global resource the controluser db connection handle
* @global resource $controllink the controluser db connection handle
*/
function PMA_Bookmark_save($bkm_fields, $all_users = false)
{
Expand Down Expand Up @@ -186,7 +186,7 @@ function PMA_Bookmark_save($bkm_fields, $all_users = false)
*
* @access public
*
* @global resource the controluser db connection handle
* @global resource $controllink the controluser db connection handle
*/
function PMA_Bookmark_delete($db, $id)
{
Expand Down
2 changes: 1 addition & 1 deletion libraries/core.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ function PMA_securePath($path)
* @param string|array $message_args arguments applied to $error_message
* @param boolean $delete_session whether to delete session cookie
*
* @return exit
* @return void
*/
function PMA_fatalError(
$error_message, $message_args = null, $delete_session = true
Expand Down
2 changes: 1 addition & 1 deletion libraries/dbi/DBIDummy.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ public function moreResults($link = null)
*
* @param object $link the connection object
*
* @return bool false
* @return boolean false
*/
public function nextResult($link = null)
{
Expand Down
4 changes: 2 additions & 2 deletions libraries/dbi/DBIExtension.int.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function selectDb($dbname, $link = null);
* @param object $link connection object
* @param int $options query options
*
* @return result object|bool
* @return object|bool result
*/
public function realQuery($query, $link, $options);

Expand Down Expand Up @@ -121,7 +121,7 @@ public function moreResults($link = null);
/**
* Prepare next result from multi_query
*
* @param objecy $link the connection object
* @param object $link the connection object
*
* @return bool true or false
*/
Expand Down
2 changes: 1 addition & 1 deletion libraries/dbi/DBIMysql.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ public function moreResults($link = null)
*
* @param object $link the connection object
*
* @return bool false
* @return boolean false
*/
public function nextResult($link = null)
{
Expand Down
2 changes: 0 additions & 2 deletions libraries/dbi/drizzle-wrappers.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,6 @@ class PMA_DrizzleCon
* Constructor
*
* @param DrizzleCon $dcon connection handle
*
* @return void
*/
public function __construct(DrizzleCon $dcon)
{
Expand Down
2 changes: 1 addition & 1 deletion libraries/display_export.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* @param string $str option name
*
* @return void
* @return string|void
*/
function PMA_exportCheckboxCheck($str)
{
Expand Down
2 changes: 1 addition & 1 deletion libraries/display_select_lang.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* @param array $a The first language being compared
* @param array $b The second language being compared
*
* @return the sorted array
* @return int the sorted array
*/
function PMA_languageCmp($a, $b)
{
Expand Down
17 changes: 17 additions & 0 deletions libraries/engines/pbxt.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ function resolveTypeSize($formatted_size)
}

//--------------------
/**
* Get information about pages
*
* @return array Information about pages
*/
function getInfoPages()
{
$pages = array();
Expand All @@ -114,6 +119,13 @@ function getInfoPages()
}

//--------------------
/**
* Get content of a page
*
* @param string $id Id of searched page
*
* @return string
*/
function getPage($id)
{
if (! array_key_exists($id, $this->getInfoPages())) {
Expand All @@ -125,6 +137,11 @@ function getPage($id)
return $this->$id();
}

/**
* Get content of documentation page
*
* @return string
*/
function getPageDocumentation()
{
$output = '<p>' . sprintf(
Expand Down
2 changes: 1 addition & 1 deletion libraries/file_listing.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function PMA_getFileSelectOptions($dir, $extensions = '', $active = '')
/**
* Get currently supported decompressions.
*
* @return string | separated list of extensions usable in PMA_getDirContent
* @return string separated list of extensions usable in PMA_getDirContent
*/
function PMA_supportedDecompressions()
{
Expand Down
2 changes: 1 addition & 1 deletion libraries/gis/pma_gis_geometrycollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ private function __construct()
/**
* Returns the singleton.
*
* @return the singleton
* @return PMA_GIS_Geometrycollection the singleton
* @access public
*/
public static function singleton()
Expand Down
4 changes: 2 additions & 2 deletions libraries/gis/pma_gis_multilinestring.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,8 @@ public function getShape($row_data)
/**
* Generate parameters for the GIS data editor from the value of the GIS column.
*
* @param string $value of the GIS column
* @param index $index of the geometry
* @param string $value Value of the GIS column
* @param int $index Index of the geometry
*
* @return array params for the GIS data editor from the value of the GIS column
* @access public
Expand Down
4 changes: 2 additions & 2 deletions libraries/gis/pma_gis_multipoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,8 @@ public function getShape($row_data)
/**
* Generate parameters for the GIS data editor from the value of the GIS column.
*
* @param string $value of the GIS column
* @param index $index of the geometry
* @param string $value Value of the GIS column
* @param integer $index Index of the geometry
*
* @return array params for the GIS data editor from the value of the GIS column
* @access public
Expand Down
4 changes: 2 additions & 2 deletions libraries/gis/pma_gis_multipolygon.php
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,8 @@ public function getShape($row_data)
/**
* Generate parameters for the GIS data editor from the value of the GIS column.
*
* @param string $value of the GIS column
* @param index $index of the geometry
* @param string $value Value of the GIS column
* @param int $index Index of the geometry
*
* @return array params for the GIS data editor from the value of the GIS column
* @access public
Expand Down
2 changes: 1 addition & 1 deletion libraries/gis/pma_gis_point.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ public function getShape($row_data)
* Generate parameters for the GIS data editor from the value of the GIS column.
*
* @param string $value of the GIS column
* @param index $index of the geometry
* @param int $index of the geometry
*
* @return array params for the GIS data editor from the value of the GIS column
* @access public
Expand Down
6 changes: 3 additions & 3 deletions libraries/gis/pma_gis_polygon.php
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ public static function isPointInsidePolygon($point, $polygon)
*
* @param array $ring array of points forming the ring
*
* @return array a point on the surface of the ring
* @return array|void a point on the surface of the ring
* @access public
* @static
*/
Expand Down Expand Up @@ -507,8 +507,8 @@ public static function getPointOnSurface($ring)

/** Generate parameters for the GIS data editor from the value of the GIS column.
*
* @param string $value of the GIS column
* @param index $index of the geometry
* @param string $value Value of the GIS column
* @param int $index Index of the geometry
*
* @return array params for the GIS data editor from the value of the GIS column
* @access public
Expand Down
Loading

0 comments on commit 464ec23

Please sign in to comment.