Public Member Functions

ilLMContentSearch Class Reference

Inheritance diagram for ilLMContentSearch:
Collaboration diagram for ilLMContentSearch:

Public Member Functions

 ilLMContentSearch (&$query_parser)
 Constructor public.
performSearch ()
 __createInStatement ()
 __createAndCondition ()

Detailed Description

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


Member Function Documentation

ilLMContentSearch::__createAndCondition (  ) 

Definition at line 97 of file class.ilLMContentSearch.php.

        {
                echo "Overwrite me!";
        }

ilLMContentSearch::__createInStatement (  ) 

Definition at line 79 of file class.ilLMContentSearch.php.

References $type, and ilAbstractSearch::getFilter().

Referenced by performSearch().

        {
                if(!$this->getFilter())
                {
                        return '';
                }
                else
                {
                        $type = "('";
                        $type .= implode("','",$this->getFilter());
                        $type .= "')";
                        
                        $in = " AND parent_type IN ".$type;

                        return $in;
                }
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilLMContentSearch::ilLMContentSearch ( &$  query_parser  ) 

Constructor public.

Definition at line 44 of file class.ilLMContentSearch.php.

References ilAbstractSearch::$query_parser, and ilAbstractSearch::ilAbstractSearch().

Referenced by ilFulltextLMContentSearch::ilFulltextLMContentSearch(), and ilLikeLMContentSearch::ilLikeLMContentSearch().

Here is the call graph for this function:

Here is the caller graph for this function:

& ilLMContentSearch::performSearch (  ) 

Reimplemented from ilAbstractSearch.

Definition at line 51 of file class.ilLMContentSearch.php.

References $query, $res, $row, __createInStatement(), ilAbstractSearch::__createLocateString(), and ilAbstractSearch::setFields().

        {
                $this->setFields(array('content'));

                $in = $this->__createInStatement();
                $where = $this->__createWhereCondition();
                $locate = $this->__createLocateString();

                $query = "SELECT page_id,parent_id,parent_type ".
                        $locate.
                        "FROM page_object, lm_data ".
                        $where.
                        "AND obj_id = page_id ".
                        $in;
                        
                
                $res = $this->db->query($query);
                while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
                {
                        $this->search_result->addEntry($row->parent_id,$row->parent_type,$this->__prepareFound($row),$row->page_id);
                }

                return $this->search_result;
        }

Here is the call graph for this function:


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