ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilAdvancedMDSearch Class Reference
+ Inheritance diagram for ilAdvancedMDSearch:
+ Collaboration diagram for ilAdvancedMDSearch:

Public Member Functions

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

Protected Attributes

 $definition
 $adt

Additional Inherited Members

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

Detailed Description

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

Definition at line 35 of file class.ilAdvancedMDSearch.php.

Constructor & Destructor Documentation

ilAdvancedMDSearch::__construct (   $query_parser)

Constructor.

public

Parameters
objquery parser

Definition at line 47 of file class.ilAdvancedMDSearch.php.

References ilAbstractSearch\$query_parser.

Member Function Documentation

ilAdvancedMDSearch::getDefinition ( )

get definition

public

Definition at line 70 of file class.ilAdvancedMDSearch.php.

References $definition.

Referenced by performSearch().

{
}

+ Here is the caller graph for this function:

ilAdvancedMDSearch::getSearchElement ( )

get search element

public

Returns
ilADTSearchBridge

Definition at line 93 of file class.ilAdvancedMDSearch.php.

References $adt.

Referenced by performSearch().

{
return $this->adt;
}

+ Here is the caller graph for this function:

ilAdvancedMDSearch::performSearch ( )

perform search

public

Parameters

Reimplemented from ilAbstractSearch.

Definition at line 105 of file class.ilAdvancedMDSearch.php.

References $row, ilAbstractSearch\$search_result, ilAbstractSearch\__createLocateString(), getDefinition(), ilAbstractSearch\getFilter(), getSearchElement(), and ilAbstractSearch\setFields().

{
$this->query_parser->parse();
$locate = null;
$parser_value = $this->getDefinition()->getSearchQueryParserValue($this->getSearchElement());
if($parser_value)
{
$this->setFields(array("value"));
$locate = $this->__createLocateString();
}
$search_type = strtolower(substr(get_class($this), 12, -6));
$res_field = $this->getDefinition()->searchObjects($this->getSearchElement(), $this->query_parser, $this->getFilter(), $locate, $search_type);
if(is_array($res_field))
{
foreach($res_field as $row)
{
$found = is_array($row["found"]) ? $row["found"] : array();
$this->search_result->addEntry($row["obj_id"],$row["type"],$found);
}
}
}

+ Here is the call graph for this function:

ilAdvancedMDSearch::setDefinition (   $a_def)

set Definition

public

Parameters
objfield definition object

Definition at line 59 of file class.ilAdvancedMDSearch.php.

{
$this->definition = $a_def;
}
ilAdvancedMDSearch::setSearchElement (   $a_adt)

set search element

public

Parameters
ilADTSearchBridge

Definition at line 82 of file class.ilAdvancedMDSearch.php.

{
$this->adt = $a_adt;
}

Field Documentation

ilAdvancedMDSearch::$adt
protected

Definition at line 38 of file class.ilAdvancedMDSearch.php.

Referenced by getSearchElement().

ilAdvancedMDSearch::$definition
protected

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

Referenced by getDefinition().


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