Public Member Functions

ilObjectSearch Class Reference

Inheritance diagram for ilObjectSearch:
Collaboration diagram for ilObjectSearch:

Public Member Functions

 ilObjectSearch (&$qp_obj)
 Constructor public.
performSearch ()
 __createInStatement ()

Detailed Description

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

Member Function Documentation

ilObjectSearch::__createInStatement (  ) 

Definition at line 77 of file class.ilObjectSearch.php.

References $type.

Referenced by performSearch().

                $type = "('";
                $type .= implode("','",$this->object_types);
                $type .= "')";
                $in = " AND type IN ".$type;

                return $in;

Here is the caller graph for this function:

ilObjectSearch::ilObjectSearch ( &$  qp_obj  ) 

Constructor public.

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

References ilAbstractSearch::ilAbstractSearch(), and ilAbstractSearch::setFields().

Referenced by ilFulltextObjectSearch::ilFulltextObjectSearch(), and ilLikeObjectSearch::ilLikeObjectSearch().



Here is the call graph for this function:

Here is the caller graph for this function:

& ilObjectSearch::performSearch (  ) 

Reimplemented from ilAbstractSearch.

Definition at line 54 of file class.ilObjectSearch.php.

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

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

                $query = "SELECT obj_id,type ".
                        "FROM object_data ".
                        $where." ".$in.' '.
                        "ORDER BY obj_id DESC";
                $res = $this->db->query($query);
                while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
                return $this->search_result;

Here is the call graph for this function:

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