Commit 93bbf89f by Scott

PHPDoc update

parent da09b279
...@@ -42,6 +42,7 @@ class Q2A_Util_Usage ...@@ -42,6 +42,7 @@ class Q2A_Util_Usage
/** /**
* Return an array representing the resource usage as of now. * Return an array representing the resource usage as of now.
* @return array
*/ */
public function getCurrent() public function getCurrent()
{ {
...@@ -68,7 +69,7 @@ class Q2A_Util_Usage ...@@ -68,7 +69,7 @@ class Q2A_Util_Usage
/** /**
* Mark the beginning of a new stage of script execution and store usages accordingly. * Mark the beginning of a new stage of script execution and store usages accordingly.
* @param $stage * @param string $stage
*/ */
public function mark($stage) public function mark($stage)
{ {
...@@ -79,10 +80,10 @@ class Q2A_Util_Usage ...@@ -79,10 +80,10 @@ class Q2A_Util_Usage
/** /**
* Logs query and updates database usage stats. * Logs query and updates database usage stats.
* @param $query * @param string $query
* @param $usedtime * @param int $usedtime
* @param $gotrows * @param int $gotrows
* @param $gotcolumns * @param int $gotcolumns
*/ */
public function logDatabaseQuery($query, $usedtime, $gotrows, $gotcolumns) public function logDatabaseQuery($query, $usedtime, $gotrows, $gotcolumns)
{ {
...@@ -196,8 +197,8 @@ class Q2A_Util_Usage ...@@ -196,8 +197,8 @@ class Q2A_Util_Usage
/** /**
* Return the difference between two resource usage arrays, as an array. * Return the difference between two resource usage arrays, as an array.
* @param $oldusage * @param array $oldusage
* @param $newusage * @param array $newusage
* @return array * @return array
*/ */
private function delta($oldusage, $newusage) private function delta($oldusage, $newusage)
......
...@@ -28,7 +28,7 @@ if (!defined('QA_VERSION')) { // don't allow this page to be requested directly ...@@ -28,7 +28,7 @@ if (!defined('QA_VERSION')) { // don't allow this page to be requested directly
/** /**
* Return true if user is logged in with admin privileges. If not, return false * Return true if user is logged in with admin privileges. If not, return false
* and set up $qa_content with the appropriate title and error message * and set up $qa_content with the appropriate title and error message
* @param $qa_content * @param array $qa_content
* @return bool * @return bool
*/ */
function qa_admin_check_privileges(&$qa_content) function qa_admin_check_privileges(&$qa_content)
...@@ -58,6 +58,7 @@ function qa_admin_check_privileges(&$qa_content) ...@@ -58,6 +58,7 @@ function qa_admin_check_privileges(&$qa_content)
/** /**
* Return a sorted array of available languages, [short code] => [long name] * Return a sorted array of available languages, [short code] => [long name]
* @return array
*/ */
function qa_admin_language_options() function qa_admin_language_options()
{ {
...@@ -140,6 +141,7 @@ function qa_admin_language_options() ...@@ -140,6 +141,7 @@ function qa_admin_language_options()
/** /**
* Return a sorted array of available themes, [theme name] => [theme name] * Return a sorted array of available themes, [theme name] => [theme name]
* @return array
*/ */
function qa_admin_theme_options() function qa_admin_theme_options()
{ {
...@@ -164,6 +166,7 @@ function qa_admin_theme_options() ...@@ -164,6 +166,7 @@ function qa_admin_theme_options()
/** /**
* Return an array of widget placement options, with keys matching the database value * Return an array of widget placement options, with keys matching the database value
* @return array
*/ */
function qa_admin_place_options() function qa_admin_place_options()
{ {
...@@ -186,7 +189,7 @@ function qa_admin_place_options() ...@@ -186,7 +189,7 @@ function qa_admin_place_options()
/** /**
* Return an array of page size options up to $maximum, [page size] => [page size] * Return an array of page size options up to $maximum, [page size] => [page size]
* @param $maximum * @param int $maximum
* @return array * @return array
*/ */
function qa_admin_page_size_options($maximum) function qa_admin_page_size_options($maximum)
...@@ -207,6 +210,7 @@ function qa_admin_page_size_options($maximum) ...@@ -207,6 +210,7 @@ function qa_admin_page_size_options($maximum)
/** /**
* Return an array of options representing matching precision, [value] => [label] * Return an array of options representing matching precision, [value] => [label]
* @return array
*/ */
function qa_admin_match_options() function qa_admin_match_options()
{ {
...@@ -223,8 +227,8 @@ function qa_admin_match_options() ...@@ -223,8 +227,8 @@ function qa_admin_match_options()
/** /**
* Return an array of options representing permission restrictions, [value] => [label] * Return an array of options representing permission restrictions, [value] => [label]
* ranging from $widest to $narrowest. Set $doconfirms to whether email confirmations are on * ranging from $widest to $narrowest. Set $doconfirms to whether email confirmations are on
* @param $widest * @param int $widest
* @param $narrowest * @param int $narrowest
* @param bool $doconfirms * @param bool $doconfirms
* @param bool $dopoints * @param bool $dopoints
* @return array * @return array
...@@ -275,6 +279,7 @@ function qa_admin_permit_options($widest, $narrowest, $doconfirms = true, $dopoi ...@@ -275,6 +279,7 @@ function qa_admin_permit_options($widest, $narrowest, $doconfirms = true, $dopoi
/** /**
* Return the sub navigation structure common to admin pages * Return the sub navigation structure common to admin pages
* @return array
*/ */
function qa_admin_sub_navigation() function qa_admin_sub_navigation()
{ {
...@@ -415,6 +420,7 @@ function qa_admin_sub_navigation() ...@@ -415,6 +420,7 @@ function qa_admin_sub_navigation()
/** /**
* Return the error that needs to displayed on all admin pages, or null if none * Return the error that needs to displayed on all admin pages, or null if none
* @return string|null
*/ */
function qa_admin_page_error() function qa_admin_page_error()
{ {
...@@ -441,6 +447,7 @@ function qa_admin_page_error() ...@@ -441,6 +447,7 @@ function qa_admin_page_error()
/** /**
* Return an HTML fragment to display for a URL test which has passed * Return an HTML fragment to display for a URL test which has passed
* @return string
*/ */
function qa_admin_url_test_html() function qa_admin_url_test_html()
{ {
...@@ -450,7 +457,7 @@ function qa_admin_url_test_html() ...@@ -450,7 +457,7 @@ function qa_admin_url_test_html()
/** /**
* Returns whether a URL path beginning with $requestpart is reserved by the engine or a plugin page module * Returns whether a URL path beginning with $requestpart is reserved by the engine or a plugin page module
* @param $requestpart * @param string $requestpart
* @return bool * @return bool
*/ */
function qa_admin_is_slug_reserved($requestpart) function qa_admin_is_slug_reserved($requestpart)
...@@ -492,8 +499,8 @@ function qa_admin_is_slug_reserved($requestpart) ...@@ -492,8 +499,8 @@ function qa_admin_is_slug_reserved($requestpart)
/** /**
* Returns true if admin (hidden/flagged/approve/moderate) page $action performed on $entityid is permitted by the * Returns true if admin (hidden/flagged/approve/moderate) page $action performed on $entityid is permitted by the
* logged in user and was processed successfully * logged in user and was processed successfully
* @param $entityid * @param int $entityid
* @param $action * @param string $action
* @return bool * @return bool
*/ */
function qa_admin_single_click($entityid, $action) function qa_admin_single_click($entityid, $action)
...@@ -586,8 +593,8 @@ function qa_admin_single_click($entityid, $action) ...@@ -586,8 +593,8 @@ function qa_admin_single_click($entityid, $action)
/** /**
* Returns true if admin (hidden/flagged/approve/moderate) page $action performed on $entityid is permitted by the * Returns true if admin (hidden/flagged/approve/moderate) page $action performed on $entityid is permitted by the
* logged in user and was processed successfully * logged in user and was processed successfully
* @param $entityid * @param int $entityid
* @param $action * @param string $action
* @return array * @return array
*/ */
function qa_admin_single_click_array($entityid, $action) function qa_admin_single_click_array($entityid, $action)
...@@ -836,6 +843,7 @@ function qa_admin_single_click_array($entityid, $action) ...@@ -836,6 +843,7 @@ function qa_admin_single_click_array($entityid, $action)
/** /**
* Checks for a POSTed click on an admin (hidden/flagged/approve/moderate) page, and refresh the page if processed successfully (non Ajax) * Checks for a POSTed click on an admin (hidden/flagged/approve/moderate) page, and refresh the page if processed successfully (non Ajax)
* @return string|null
*/ */
function qa_admin_check_clicks() function qa_admin_check_clicks()
{ {
...@@ -866,8 +874,8 @@ function qa_admin_check_clicks() ...@@ -866,8 +874,8 @@ function qa_admin_check_clicks()
* Retrieve metadata information from the $contents of a qa-theme.php or qa-plugin.php file, mapping via $fields. * Retrieve metadata information from the $contents of a qa-theme.php or qa-plugin.php file, mapping via $fields.
* *
* @deprecated Deprecated from 1.7; use `qa_addon_metadata($contents, $type)` instead. * @deprecated Deprecated from 1.7; use `qa_addon_metadata($contents, $type)` instead.
* @param $contents * @param string $contents
* @param $fields * @param array $fields
* @return array * @return array
*/ */
function qa_admin_addon_metadata($contents, $fields) function qa_admin_addon_metadata($contents, $fields)
...@@ -885,7 +893,7 @@ function qa_admin_addon_metadata($contents, $fields) ...@@ -885,7 +893,7 @@ function qa_admin_addon_metadata($contents, $fields)
/** /**
* Return the hash code for the plugin in $directory (without trailing slash), used for in-page navigation on admin/plugins page * Return the hash code for the plugin in $directory (without trailing slash), used for in-page navigation on admin/plugins page
* @param $directory * @param string $directory
* @return mixed * @return mixed
*/ */
function qa_admin_plugin_directory_hash($directory) function qa_admin_plugin_directory_hash($directory)
...@@ -899,7 +907,7 @@ function qa_admin_plugin_directory_hash($directory) ...@@ -899,7 +907,7 @@ function qa_admin_plugin_directory_hash($directory)
/** /**
* Return the URL (relative to the current page) to navigate to the options panel for the plugin in $directory (without trailing slash) * Return the URL (relative to the current page) to navigate to the options panel for the plugin in $directory (without trailing slash)
* @param $directory * @param string $directory
* @return mixed|string * @return mixed|string
*/ */
function qa_admin_plugin_options_path($directory) function qa_admin_plugin_options_path($directory)
...@@ -911,8 +919,8 @@ function qa_admin_plugin_options_path($directory) ...@@ -911,8 +919,8 @@ function qa_admin_plugin_options_path($directory)
/** /**
* Return the URL (relative to the current page) to navigate to the options panel for plugin module $name of $type * Return the URL (relative to the current page) to navigate to the options panel for plugin module $name of $type
* @param $type * @param string $type
* @param $name * @param string $name
* @return mixed|string * @return mixed|string
*/ */
function qa_admin_module_options_path($type, $name) function qa_admin_module_options_path($type, $name)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment