result.php 560 B

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