ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 30 of file class.arStatementCollection.php.

31  {
32  $this->statements[] = $statement;
33  }

◆ asORACLEStatement()

arStatementCollection::asORACLEStatement ( )
Returns
string

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

References asSQLStatement().

74  {
75  return $this->asSQLStatement();
76  }
+ 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 109 of file class.arStatementCollection.php.

References $statements.

◆ hasStatements()

arStatementCollection::hasStatements ( )
Returns
bool

Definition at line 39 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().

40  {
41  return count($this->statements) > 0;
42  }
+ 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 82 of file class.arStatementCollection.php.

References $ar.

83  {
84  $this->ar = $ar;
85  }

◆ setStatements()

arStatementCollection::setStatements (   $statements)
Parameters

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

References $statements.

101  {
102  $this->statements = $statements;
103  }

Field Documentation

◆ $ar

arStatementCollection::$ar
protected

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

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

◆ $cache

arStatementCollection::$cache = array()
staticprotected

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

◆ $statements


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