2011-07-29 23:03:53 +04:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* a result of a search
|
|
|
|
*/
|
|
|
|
class OC_Search_Result{
|
2011-07-30 18:42:20 +04:00
|
|
|
public $name;
|
|
|
|
public $text;
|
|
|
|
public $link;
|
|
|
|
public $type;
|
2013-08-01 00:24:52 +04:00
|
|
|
public $container;
|
2011-07-29 23:03:53 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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)
|
2014-02-06 19:30:58 +04:00
|
|
|
* @param string $container
|
2011-07-29 23:03:53 +04:00
|
|
|
*/
|
2013-08-01 00:24:52 +04:00
|
|
|
public function __construct($name, $text, $link, $type, $container) {
|
2011-07-29 23:03:53 +04:00
|
|
|
$this->name=$name;
|
|
|
|
$this->text=$text;
|
|
|
|
$this->link=$link;
|
|
|
|
$this->type=$type;
|
2013-08-01 00:24:52 +04:00
|
|
|
$this->container=$container;
|
2011-07-29 23:03:53 +04:00
|
|
|
}
|
|
|
|
}
|