summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Brown <andrew@casabrown.com>2013-09-30 18:35:02 -0400
committerJörn Friedrich Dreyer <jfd@butonic.de>2014-06-05 19:23:44 +0200
commit794a133f9ada6d26638f7aba56a2260cb6655df4 (patch)
tree717edf31fc7fb96785881f2ddb0d118b7fa42c68
parent3510674d2445dab7fe5d58187d2275ab11a8de4b (diff)
downloadnextcloud-server-794a133f9ada6d26638f7aba56a2260cb6655df4.tar.gz
nextcloud-server-794a133f9ada6d26638f7aba56a2260cb6655df4.zip
Re-add type to legacy OC_Search_Result class
-rw-r--r--lib/legacy/search/result.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/legacy/search/result.php b/lib/legacy/search/result.php
index dc8d36dbe4a..7cacb3579e5 100644
--- a/lib/legacy/search/result.php
+++ b/lib/legacy/search/result.php
@@ -18,5 +18,18 @@
*/
class OC_Search_Result extends \OC\Search\Result {
-
+
+ /**
+ * Create a new search result
+ * @param string $id unique identifier from application: '[app_name]/[item_identifier_in_app]'
+ * @param string $name displayed text of result
+ * @param string $link URL to the result within its app
+ * @param string $type @deprecated because it is now set in \OC\Search\Result descendants
+ */
+ public function __construct($id = null, $name = null, $link = null, $type = null) {
+ $this->id = $id;
+ $this->name = $name;
+ $this->link = $link;
+ $this->type = $type;
+ }
}