ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
arWhereCollection Class Reference

Class arWhereCollection. More...

+ Inheritance diagram for arWhereCollection:
+ Collaboration diagram for arWhereCollection:

Public Member Functions

 asSQLStatement ()
 
 getWheres ()
 
- Public Member Functions inherited from arStatementCollection
 add (arStatement $statement)
 
 hasStatements ()
 
 asSQLStatement ()
 
 setAr ($ar)
 
 getAr ()
 
 setStatements ($statements)
 
 getStatements ()
 

Additional Inherited Members

- Protected Attributes inherited from arStatementCollection
 $statements = array()
 
 $ar
 
- Static Protected Attributes inherited from arStatementCollection
static $cache = array()
 

Detailed Description

Class arWhereCollection.

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch
Version
2.0.7

Definition at line 11 of file class.arWhereCollection.php.

Member Function Documentation

◆ asSQLStatement()

arWhereCollection::asSQLStatement ( )
Returns
string

Reimplemented from arStatementCollection.

Definition at line 16 of file class.arWhereCollection.php.

16 {
17 $return = '';
18 if ($this->hasStatements()) {
19 $return .= ' WHERE ';
20 $wheres = $this->getWheres();
21 $last = end($wheres);
22 foreach ($wheres as $arWhere) {
23 $return .= $arWhere->asSQLStatement($this->getAr());
24 if ($arWhere != $last) {
25 $return .= ' ' . $arWhere->getLink() . ' ';
26 }
27 }
28 }
29
30 return $return;
31 }

References arStatementCollection\getAr(), getWheres(), and arStatementCollection\hasStatements().

+ Here is the call graph for this function:

◆ getWheres()

arWhereCollection::getWheres ( )
Returns
arWhere[]

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

References arStatementCollection\$statements.

Referenced by asSQLStatement().

+ Here is the caller graph for this function:

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