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

Public Member Functions

 __construct ($qp)
 Constructor.
 __createTaxonWhereCondition ()
 __createKeywordWhereCondition ()
 __createLifecycleWhereCondition ()
 __createEntityWhereCondition ()
 __createCoverageAndCondition ()
 __createTitleDescriptionWhereCondition ()
- Public Member Functions inherited from ilAdvancedSearch
 ilAdvancedSearch (&$qp_obj)
 Constructor public.
 setMode ($a_mode)
 Define meta elements to search.
 getMode ()
 setOptions (&$options)
performSearch ()
__searchTitleDescription ()
__searchGeneral ()
__searchLanguage ()
__searchContribute ()
__searchEntity ()
__searchRequirement ()
__searchEducational ()
__searchTypicalAgeRange ()
__searchRights ()
__searchClassification ()
__searchTaxon ()
__searchKeyword ($a_in_classification=false)
__searchLifecycle ()
__searchFormat ()
 __createRightsWhere ()
 __createClassificationWhere ()
 __createEducationalWhere ()
 __createRequirementWhere ()
 __getDifference ($a_val1, $a_val2, $options)
 __getInStatement ($a_fields)
- 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)

Additional Inherited Members

- Data Fields inherited from ilAdvancedSearch
 $mode = ''
 $query_parser = null
 $db = null

Detailed Description

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

Constructor & Destructor Documentation

ilLikeAdvancedSearch::__construct (   $qp)

Constructor.

Returns

Definition at line 43 of file class.ilLikeAdvancedSearch.php.

Member Function Documentation

ilLikeAdvancedSearch::__createCoverageAndCondition ( )

Definition at line 140 of file class.ilLikeAdvancedSearch.php.

{
global $ilDB;
if($this->options['lom_coverage'])
{
$where = " AND (";
$counter = 0;
foreach($this->query_parser->getQuotedWords() as $word)
{
if($counter++)
{
$where .= "OR";
}
$where .= $ilDB->like('coverage','text','%'.$word.'%');
}
$where .= ') ';
return $where;
}
return '';
}
ilLikeAdvancedSearch::__createEntityWhereCondition ( )

Definition at line 116 of file class.ilLikeAdvancedSearch.php.

{
global $ilDB;
if($this->options['lom_role_entry'])
{
$where = " WHERE (";
$counter = 0;
foreach($this->query_parser->getQuotedWords() as $word)
{
if($counter++)
{
$where .= "OR";
}
$where .= $ilDB->like('entity','text','%'.$word.'%');
}
$where .= ') ';
return $where;
}
return '';
}
ilLikeAdvancedSearch::__createKeywordWhereCondition ( )

Definition at line 72 of file class.ilLikeAdvancedSearch.php.

{
global $ilDB;
$where = " WHERE (";
$counter = 0;
foreach($this->query_parser->getQuotedWords() as $word)
{
if($counter++)
{
$where .= "OR";
}
$where .= $ilDB->like('keyword','text','%'.$word.'%');
}
$where .= ') ';
return $where;
}
ilLikeAdvancedSearch::__createLifecycleWhereCondition ( )

Definition at line 92 of file class.ilLikeAdvancedSearch.php.

{
global $ilDB;
if($this->options['lom_version'])
{
$where = " WHERE (";
$counter = 0;
foreach($this->query_parser->getQuotedWords() as $word)
{
if($counter++)
{
$where .= "OR";
}
$where .= $ilDB->like('meta_version','text','%'.$word.'%');
}
$where .= ') ';
return $where;
}
return '';
}
ilLikeAdvancedSearch::__createTaxonWhereCondition ( )

Definition at line 48 of file class.ilLikeAdvancedSearch.php.

{
global $ilDB;
if($this->options['lom_taxon'])
{
$where = " WHERE (";
$counter = 0;
foreach($this->query_parser->getQuotedWords() as $word)
{
if($counter++)
{
$where .= "OR";
}
$where .= $ilDB->like('taxon','text','%'.$word.'%');
}
$where .= ') ';
return $where;
}
return '';
}
ilLikeAdvancedSearch::__createTitleDescriptionWhereCondition ( )

Definition at line 164 of file class.ilLikeAdvancedSearch.php.

{
global $ilDB;
$concat = $ilDB->concat(
array(
array('title','text'),
array('description','text')));
$where = " WHERE (";
$counter = 0;
foreach($this->query_parser->getQuotedWords() as $word)
{
if($counter++)
{
$where .= "OR";
}
$where .= $ilDB->like($concat,'text','%'.$word.'%');
}
$where .= ') ';
return $where;
}

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