ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
All Data Structures Namespaces Files Functions Variables Modules Pages
arStatementCollection Class Reference

Class arStatementCollection. More...

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

Public Member Functions

 add (arStatement $statement)
 
 hasStatements ()
 
 asSQLStatement ()
 
 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  }

◆ asSQLStatement()

arStatementCollection::asSQLStatement ( )
abstract
Returns
string

Referenced by hasStatements().

+ Here is the caller graph for this function:

◆ getAr()

arStatementCollection::getAr ( )

◆ getStatements()

arStatementCollection::getStatements ( )
Returns
[]

Definition at line 93 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 arConcatCollection\asSQLStatement(), arWhereCollection\asSQLStatement(), arSelectCollection\asSQLStatement(), arOrderCollection\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 69 of file class.arStatementCollection.php.

References $ar.

69  {
70  $this->ar = $ar;
71  }

◆ setStatements()

arStatementCollection::setStatements (   $statements)
Parameters

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

References $statements.

85  {
86  $this->statements = $statements;
87  }

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: