ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilWebresourceSearch Class Reference
+ Inheritance diagram for ilWebresourceSearch:
+ Collaboration diagram for ilWebresourceSearch:

Public Member Functions

 performSearch ()
 
 __createAndCondition ()
 
- Public Member Functions inherited from ilAbstractSearch
 __construct ($qp_obj)
 Constructor public. More...
 
 setFields ($a_fields)
 Set fields to search. More...
 
 getFields ()
 Get fields to search. More...
 
 setFilter ($a_filter)
 set object type to search in More...
 
 setIdFilter ($a_id_filter)
 Set id filter Filters search by given object id. More...
 
 getIdFilter ()
 Get Id filter. More...
 
 appendToFilter ($a_type)
 Append object type to filter. More...
 
 getFilter ()
 get object type to search in More...
 
 __createLocateString ()
 build locate string in case of AND search More...
 
 __prepareFound (&$row)
 
 performSearch ()
 

Additional Inherited Members

- Data Fields inherited from ilAbstractSearch
 $db = null
 
 $query_parser = null
 
 $search_result = null
 
 $object_types
 

Detailed Description

Definition at line 37 of file class.ilWebresourceSearch.php.

Member Function Documentation

◆ __createAndCondition()

ilWebresourceSearch::__createAndCondition ( )

Definition at line 58 of file class.ilWebresourceSearch.php.

59  {
60  echo "Overwrite me!";
61  }

◆ performSearch()

ilWebresourceSearch::performSearch ( )

Definition at line 39 of file class.ilWebresourceSearch.php.

References $query, $res, $row, ilAbstractSearch\$search_result, ilAbstractSearch\__createLocateString(), array, ilDBConstants\FETCHMODE_OBJECT, and ilAbstractSearch\setFields().

40  {
41  $this->setFields(array('title'));
42 
43  $where = $this->__createWhereCondition();
44  $locate = $this->__createLocateString();
45 
46  $query = "SELECT webr_id, link_id " .
47  $locate .
48  "FROM webr_items " .
49  $where;
50 
51  $res = $this->db->query($query);
52  while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
53  $this->search_result->addEntry($row->webr_id, 'webr', $this->__prepareFound($row), $row->link_id);
54  }
55  return $this->search_result;
56  }
__createLocateString()
build locate string in case of AND search
setFields($a_fields)
Set fields to search.
foreach($_POST as $key=> $value) $res
$query
Create styles array
The data for the language used.
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: