[aur-dev] [PATCH] fixup! aurjson: Pass http_data array to all functions

Marcel Korpel marcel.korpel at gmail.com
Tue Jul 21 21:28:29 UTC 2015


Signed-off-by: Marcel Korpel <marcel.korpel at gmail.com>
---
 web/lib/aurjson.class.php | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/web/lib/aurjson.class.php b/web/lib/aurjson.class.php
index 944362b..d255d45 100644
--- a/web/lib/aurjson.class.php
+++ b/web/lib/aurjson.class.php
@@ -299,7 +299,7 @@ class AurJSON {
 	 * IDs and package names are valid; sort them into the relevant arrays and
 	 * escape/quote the names.
 	 *
-	 * @param $args the arg string or array to parse.
+	 * @param array $http_data Query parameters.
 	 *
 	 * @return mixed An array containing 'ids' and 'names'.
 	 */
@@ -328,7 +328,7 @@ class AurJSON {
 	/*
 	 * Performs a fulltext mysql search of the package database.
 	 *
-	 * @param $keyword_string A string of keywords to search with.
+	 * @param array $http_data Query parameters.
 	 *
 	 * @return mixed Returns an array of package matches.
 	 */
@@ -359,7 +359,7 @@ class AurJSON {
 	/*
 	 * Returns the info on a specific package.
 	 *
-	 * @param $pqdata The ID or name of the package. Package Query Data.
+	 * @param array $http_data Query parameters.
 	 *
 	 * @return mixed Returns an array of value data containing the package data
 	 */
@@ -377,7 +377,7 @@ class AurJSON {
 	/*
 	 * Returns the info on multiple packages.
 	 *
-	 * @param $pqdata A comma-separated list of IDs or names of the packages.
+	 * @param array $http_data Query parameters.
 	 *
 	 * @return mixed Returns an array of results containing the package data
 	 */
@@ -414,7 +414,7 @@ class AurJSON {
 	/*
 	 * Returns all the packages for a specific maintainer.
 	 *
-	 * @param $maintainer The name of the maintainer.
+	 * @param array $http_data Query parameters.
 	 *
 	 * @return mixed Returns an array of value data containing the package data
 	 */
@@ -430,7 +430,7 @@ class AurJSON {
 	/*
 	 * Get all package names that start with $search.
 	 *
-	 * @param string $search Search string.
+	 * @param array $http_data Query parameters.
 	 *
 	 * @return string The JSON formatted response data.
 	 */
@@ -457,7 +457,7 @@ class AurJSON {
 	/*
 	 * Get all package base names that start with $search.
 	 *
-	 * @param string $search Search string.
+	 * @param array $http_data Query parameters.
 	 *
 	 * @return string The JSON formatted response data.
 	 */
-- 
2.4.6


More information about the aur-dev mailing list