From 794a133f9ada6d26638f7aba56a2260cb6655df4 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Mon, 30 Sep 2013 18:35:02 -0400 Subject: Re-add type to legacy OC_Search_Result class --- lib/legacy/search/result.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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; + } } -- cgit v1.2.3