ILIAS  release_5-2 Revision v5.2.25-18-g3f80b82851
arStatementCollection Class Reference

Class arStatementCollection. More...

+ Inheritance diagram for arStatementCollection:
+ Collaboration diagram for arStatementCollection:

Public Member Functions

 add (arStatement $statement)
 
 hasStatements ()
 
 asSQLStatement ()
 
 asORACLEStatement ()
 
 setAr ($ar)
 
 getAr ()
 
 setStatements ($statements)
 
 getStatements ()
 

Protected Attributes

 $statements = array()
 
 $ar
 

Static Protected Attributes

static $cache = array()
 

Detailed Description

Class arStatementCollection.

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

Definition at line 10 of file class.arStatementCollection.php.

Member Function Documentation

◆ add()

arStatementCollection::add ( arStatement  $statement)
Parameters
arStatement$statement

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

29  {
30  $this->statements[] = $statement;
31  }

◆ asORACLEStatement()

arStatementCollection::asORACLEStatement ( )
Returns
string

Definition at line 69 of file class.arStatementCollection.php.

References asSQLStatement().

69  {
70  return $this->asSQLStatement();
71  }
+ Here is the call graph for this function:

◆ asSQLStatement()

arStatementCollection::asSQLStatement ( )
abstract
Returns
string

Referenced by asORACLEStatement(), and hasStatements().

+ Here is the caller graph for this function:

◆ getAr()

◆ getStatements()

arStatementCollection::getStatements ( )
Returns
[]

Definition at line 101 of file class.arStatementCollection.php.

References $statements.

◆ hasStatements()

arStatementCollection::hasStatements ( )
Returns
bool

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

References $ar, and asSQLStatement().

Referenced by arJoinCollection\asORACLEStatement(), arWhereCollection\asSQLStatement(), arConcatCollection\asSQLStatement(), arOrderCollection\asSQLStatement(), arHavingCollection\asSQLStatement(), arSelectCollection\asSQLStatement(), and arJoinCollection\asSQLStatement().

37  {
38  return count($this->statements) > 0;
39  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setAr()

arStatementCollection::setAr (   $ar)
Parameters
\ActiveRecord$ar

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

References $ar.

77  {
78  $this->ar = $ar;
79  }

◆ setStatements()

arStatementCollection::setStatements (   $statements)
Parameters

Definition at line 93 of file class.arStatementCollection.php.

References $statements.

93  {
94  $this->statements = $statements;
95  }

Field Documentation

◆ $ar

arStatementCollection::$ar
protected

Definition at line 23 of file class.arStatementCollection.php.

Referenced by getAr(), hasStatements(), and setAr().

◆ $cache

arStatementCollection::$cache = array()
staticprotected

Definition at line 15 of file class.arStatementCollection.php.

◆ $statements


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