ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilLikeUserOrgUnitSearch Class Reference

Description of class class. More...

+ Inheritance diagram for ilLikeUserOrgUnitSearch:
+ Collaboration diagram for ilLikeUserOrgUnitSearch:

Public Member Functions

 __construct ($qp_obj)
 
 performSearch ()
 
 __createWhereCondition ()
 
- Public Member Functions inherited from ilAbstractSearch
 __construct (ilQueryParser $qp_obj)
 
 setFields (array $a_fields)
 
 getFields ()
 
 setFilter (array $a_filter)
 
 setIdFilter (array $a_id_filter)
 
 getIdFilter ()
 
 appendToFilter (string $a_type)
 
 getFilter ()
 
 __createLocateString ()
 
 __prepareFound (object $row)
 
 performSearch ()
 

Data Fields

const ORG_ASSIGNMENTS_TABLE = 'orgu_user_assignements'
 

Private Attributes

ilObjOrgUnitTree $org_tree
 

Additional Inherited Members

- Protected Member Functions inherited from ilAbstractSearch
 getValidObjectTypes (ilObjectDefinition $object_definition)
 
- Protected Attributes inherited from ilAbstractSearch
ilDBInterface $db
 
ilQueryParser $query_parser
 
ilSearchResult $search_result
 
array $object_types = []
 

Detailed Description

Description of class class.

Author
Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e

Definition at line 27 of file class.ilLikeUserOrgUnitSearch.php.

Constructor & Destructor Documentation

◆ __construct()

ilLikeUserOrgUnitSearch::__construct (   $qp_obj)

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

36 {
37 parent::__construct($qp_obj);
38
39 $this->org_tree = ilObjOrgUnitTree::_getInstance();
40 $this->org_tree->buildTempTableWithUsrAssignements(self::ORG_ASSIGNMENTS_TABLE);
41 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References ILIAS\GlobalScreen\Provider\__construct(), and ilObjOrgUnitTree\_getInstance().

+ Here is the call graph for this function:

Member Function Documentation

◆ __createWhereCondition()

ilLikeUserOrgUnitSearch::__createWhereCondition ( )

Definition at line 61 of file class.ilLikeUserOrgUnitSearch.php.

61 : string
62 {
63 $and = '';
64 $where = 'WHERE ';
65 $counter = 0;
66 foreach ($this->query_parser->getQuotedWords() as $word) {
67 if ($counter++) {
68 $and .= " OR ";
69 }
70 $where .= ('ref_id = ' . $this->db->quote($word, 'integer'));
71 }
72 return $where;
73 }
$counter

References $counter.

Referenced by performSearch().

+ Here is the caller graph for this function:

◆ performSearch()

ilLikeUserOrgUnitSearch::performSearch ( )

Reimplemented from ilAbstractSearch.

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

45 {
46 $where = $this->__createWhereCondition();
47 $locate = $this->__createLocateString();
48
49 $query = 'SELECT user_id ' .
50 'FROM ' . self::ORG_ASSIGNMENTS_TABLE . ' ' .
51 $where;
52
53 $res = $this->db->query($query);
54 while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_OBJECT)) {
55 $this->search_result->addEntry($row->user_id, 'user', $this->__prepareFound($row));
56 }
58 }
ilSearchResult $search_result
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$res
Definition: ltiservices.php:69

References $res, ilAbstractSearch\$search_result, ilAbstractSearch\__createLocateString(), __createWhereCondition(), and ilDBConstants\FETCHMODE_OBJECT.

+ Here is the call graph for this function:

Field Documentation

◆ $org_tree

ilObjOrgUnitTree ilLikeUserOrgUnitSearch::$org_tree
private

Definition at line 31 of file class.ilLikeUserOrgUnitSearch.php.

◆ ORG_ASSIGNMENTS_TABLE

const ilLikeUserOrgUnitSearch::ORG_ASSIGNMENTS_TABLE = 'orgu_user_assignements'

Definition at line 29 of file class.ilLikeUserOrgUnitSearch.php.


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