Skip to content

Commit

Permalink
Improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Apr 24, 2012
1 parent ddec158 commit 3308e16
Showing 1 changed file with 49 additions and 49 deletions.
98 changes: 49 additions & 49 deletions libraries/dbi/mysql.dbi.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ function PMA_DBI_real_connect($server, $user, $password, $client_flags, $persist
/**
* connects to the database server
*
* @param string $user mysql user name
* @param string $password mysql user password
* @param bool $is_controluser
* @param array $server host/port/socket/persistent
* @param bool $auxiliary_connection (when true, don't go back to login if connection fails)
* @return mixed false on error or a mysqli object on success
* @param string $user mysql user name
* @param string $password mysql user password
* @param bool $is_controluser
* @param array $server host/port/socket/persistent
* @param bool $auxiliary_connection (when true, don't go back to login if connection fails)
* @return mixed false on error or a mysqli object on success
*/
function PMA_DBI_connect($user, $password, $is_controluser = false, $server = null, $auxiliary_connection = false)
{
Expand Down Expand Up @@ -137,8 +137,8 @@ function PMA_DBI_connect($user, $password, $is_controluser = false, $server = nu
/**
* selects given database
*
* @param string $dbname name of db to select
* @param resource $link mysql link resource
* @param string $dbname name of db to select
* @param resource $link mysql link resource
* @return bool
*/
function PMA_DBI_select_db($dbname, $link = null)
Expand All @@ -156,9 +156,9 @@ function PMA_DBI_select_db($dbname, $link = null)
/**
* runs a query and returns the result
*
* @param string $query query to run
* @param resource $link mysql link resource
* @param int $options
* @param string $query query to run
* @param resource $link mysql link resource
* @param int $options query options
* @return mixed
*/
function PMA_DBI_real_query($query, $link, $options)
Expand All @@ -175,8 +175,8 @@ function PMA_DBI_real_query($query, $link, $options)
/**
* returns array of rows with associative and numeric keys from $result
*
* @param resource $result
* @return array
* @param resource $result result MySQL result
* @return array
*/
function PMA_DBI_fetch_array($result)
{
Expand All @@ -186,8 +186,8 @@ function PMA_DBI_fetch_array($result)
/**
* returns array of rows with associative keys from $result
*
* @param resource $result
* @return array
* @param resource $result MySQL result
* @return array
*/
function PMA_DBI_fetch_assoc($result)
{
Expand All @@ -197,8 +197,8 @@ function PMA_DBI_fetch_assoc($result)
/**
* returns array of rows with numeric keys from $result
*
* @param resource $result
* @return array
* @param resource $result MySQL result
* @return array
*/
function PMA_DBI_fetch_row($result)
{
Expand All @@ -208,9 +208,9 @@ function PMA_DBI_fetch_row($result)
/**
* Adjusts the result pointer to an arbitrary row in the result
*
* @param $result
* @param $offset
* @return bool true on success, false on failure
* @param $result
* @param $offset
* @return bool true on success, false on failure
*/
function PMA_DBI_data_seek($result, $offset)
{
Expand All @@ -220,7 +220,7 @@ function PMA_DBI_data_seek($result, $offset)
/**
* Frees memory associated with the result
*
* @param resource $result
* @param resource $result
*/
function PMA_DBI_free_result($result)
{
Expand All @@ -232,7 +232,7 @@ function PMA_DBI_free_result($result)
/**
* Check if there are any more query results from a multi query
*
* @return bool false
* @return bool false
*/
function PMA_DBI_more_results()
{
Expand All @@ -246,7 +246,7 @@ function PMA_DBI_more_results()
/**
* Prepare next result from multi_query
*
* @return boo false
* @return boo false
*/
function PMA_DBI_next_result()
{
Expand All @@ -260,8 +260,8 @@ function PMA_DBI_next_result()
/**
* Returns a string representing the type of connection used
*
* @param resource $link mysql link
* @return string type of connection used
* @param resource $link mysql link
* @return string type of connection used
*/
function PMA_DBI_get_host_info($link = null)
{
Expand All @@ -278,8 +278,8 @@ function PMA_DBI_get_host_info($link = null)
/**
* Returns the version of the MySQL protocol used
*
* @param resource $link mysql link
* @return int version of the MySQL protocol used
* @param resource $link mysql link
* @return int version of the MySQL protocol used
*/
function PMA_DBI_get_proto_info($link = null)
{
Expand All @@ -296,7 +296,7 @@ function PMA_DBI_get_proto_info($link = null)
/**
* returns a string that represents the client library version
*
* @return string MySQL client library version
* @return string MySQL client library version
*/
function PMA_DBI_get_client_info()
{
Expand All @@ -306,8 +306,8 @@ function PMA_DBI_get_client_info()
/**
* returns last error message or false if no errors occured
*
* @param resource $link mysql link
* @return string|bool $error or false
* @param resource $link mysql link
* @return string|bool $error or false
*/
function PMA_DBI_getError($link = null)
{
Expand Down Expand Up @@ -347,8 +347,8 @@ function PMA_DBI_getError($link = null)
/**
* returns the number of rows returned by last query
*
* @param resource $result
* @return string|int
* @param resource $result MySQL result
* @return string|int
*/
function PMA_DBI_num_rows($result)
{
Expand All @@ -362,8 +362,8 @@ function PMA_DBI_num_rows($result)
/**
* returns last inserted auto_increment id for given $link or $GLOBALS['userlink']
*
* @param resource $link the mysql object
* @return string|int
* @param resource $link the mysql object
* @return string|int
*/
function PMA_DBI_insert_id($link = null)
{
Expand All @@ -385,9 +385,9 @@ function PMA_DBI_insert_id($link = null)
/**
* returns the number of rows affected by last query
*
* @param resource $link the mysql object
* @param bool $get_from_cache
* @return string|int
* @param resource $link the mysql object
* @param bool $get_from_cache
* @return string|int
*/
function PMA_DBI_affected_rows($link = null, $get_from_cache = true)
{
Expand All @@ -410,8 +410,8 @@ function PMA_DBI_affected_rows($link = null, $get_from_cache = true)
* returns metainfo for fields in $result
*
* @todo add missing keys like in mysqli_query (decimals)
* @param resource $result
* @return array meta info for fields in $result
* @param resource $result MySQL result
* @return array meta info for fields in $result
*/
function PMA_DBI_get_fields_meta($result)
{
Expand All @@ -430,7 +430,7 @@ function PMA_DBI_get_fields_meta($result)
/**
* return number of fields in given $result
*
* @param resource $result
* @param resource $result MySQL result
* @return int field count
*/
function PMA_DBI_num_fields($result)
Expand All @@ -441,9 +441,9 @@ function PMA_DBI_num_fields($result)
/**
* returns the length of the given field $i in $result
*
* @param resource $result
* @param int $i field
* @return int length of field
* @param resource $result MySQL result
* @param int $i field
* @return int length of field
*/
function PMA_DBI_field_len($result, $i)
{
Expand All @@ -453,9 +453,9 @@ function PMA_DBI_field_len($result, $i)
/**
* returns name of $i. field in $result
*
* @param resource $result
* @param int $i field
* @return string name of $i. field in $result
* @param resource $result MySQL result
* @param int $i field
* @return string name of $i. field in $result
*/
function PMA_DBI_field_name($result, $i)
{
Expand All @@ -465,9 +465,9 @@ function PMA_DBI_field_name($result, $i)
/**
* returns concatenated string of human readable field flags
*
* @param resource $result
* @param int $i field
* @return string field flags
* @param resource $result MySQL result
* @param int $i field
* @return string field flags
*/
function PMA_DBI_field_flags($result, $i)
{
Expand Down

0 comments on commit 3308e16

Please sign in to comment.