b40925ae17
use places/folder icon, move link construction to JS, only show icon on hover, use 'searchresult' as css class name, add filter/unfilter methods, highlight searched files in current filelist only filter when correct FileList is present
26 lines
623 B
PHP
26 lines
623 B
PHP
<?php
|
|
/**
|
|
* a result of a search
|
|
*/
|
|
class OC_Search_Result{
|
|
public $name;
|
|
public $text;
|
|
public $link;
|
|
public $type;
|
|
public $container;
|
|
|
|
/**
|
|
* 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)
|
|
*/
|
|
public function __construct($name, $text, $link, $type, $container) {
|
|
$this->name=$name;
|
|
$this->text=$text;
|
|
$this->link=$link;
|
|
$this->type=$type;
|
|
$this->container=$container;
|
|
}
|
|
}
|