Blame view
sources/lib/private/search/result.php
623 Bytes
|
03e52840d
|
1 2 3 4 5 6 7 8 9 |
<?php
/**
* a result of a search
*/
class OC_Search_Result{
public $name;
public $text;
public $link;
public $type;
|
|
31b7f2792
|
10 |
public $container; |
|
03e52840d
|
11 12 13 14 15 16 17 18 |
/**
* create a new search result
* @param string $name short name for the result
* @param string $text some more information about the result
* @param string $link link for the result
* @param string $type the type of result as human readable string ('File', 'Music', etc)
*/
|
|
31b7f2792
|
19 |
public function __construct($name, $text, $link, $type, $container) {
|
|
03e52840d
|
20 21 22 23 |
$this->name=$name; $this->text=$text; $this->link=$link; $this->type=$type; |
|
31b7f2792
|
24 |
$this->container=$container; |
|
03e52840d
|
25 26 |
} } |