summaryrefslogtreecommitdiffstats
path: root/web/lib
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2015-07-22 07:19:01 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2015-08-08 12:59:24 +0200
commit080b6f3d123c465f70a8f9f1e724111dd1b3cf56 (patch)
tree6b905b7b7a1832f8725277388707f8a180693cc6 /web/lib
parent54d812ec791de4b36d45cdcb853d01dc72d78669 (diff)
downloadaurweb-080b6f3d123c465f70a8f9f1e724111dd1b3cf56.tar.xz
aurjson.class.php: Add missing PHPDoc
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/aurjson.class.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/web/lib/aurjson.class.php b/web/lib/aurjson.class.php
index 4e4d5dc..7d94dab 100644
--- a/web/lib/aurjson.class.php
+++ b/web/lib/aurjson.class.php
@@ -139,6 +139,7 @@ class AurJSON {
* Returns a JSON formatted result data.
*
* @param $type The response method type.
+ * @param $count The number of results to return
* @param $data The result data to return
* @param $error An error message to include in the response
*
@@ -159,6 +160,13 @@ class AurJSON {
return json_encode($json_array);
}
+ /*
+ * Get extended package details (for info and multiinfo queries).
+ *
+ * @param $pkgid The ID of the package to retrieve details for.
+ *
+ * @return array An array containing package details.
+ */
private function get_extended_fields($pkgid) {
$query = "SELECT DependencyTypes.Name AS Type, " .
"PackageDepends.DepName AS Name, " .
@@ -208,6 +216,15 @@ class AurJSON {
return $data;
}
+ /*
+ * Retrieve package information (used in info, multiinfo, search and
+ * msearch requests).
+ *
+ * @param $type The request type.
+ * @param $where_condition An SQL WHERE-condition to filter packages.
+ *
+ * @return mixed Returns an array of package matches.
+ */
private function process_query($type, $where_condition) {
$max_results = config_get_int('options', 'max_rpc_results');