ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups 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

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

Reimplemented in arJoinCollection.

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

{
$this->statements[] = $statement;
}
arStatementCollection::asSQLStatement ( )
abstract
arStatementCollection::getAr ( )
arStatementCollection::getStatements ( )
Returns
[]

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

References $statements.

{
}
arStatementCollection::hasStatements ( )
Returns
bool

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

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

{
return count($this->statements) > 0;
}

+ Here is the caller graph for this function:

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

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

References $ar.

{
$this->ar = $ar;
}
arStatementCollection::setStatements (   $statements)
Parameters
\arStatement[]$statements

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

References $statements.

{
$this->statements = $statements;
}

Field Documentation

arStatementCollection::$ar
protected

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

Referenced by getAr(), and setAr().

arStatementCollection::$cache = array()
staticprotected

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


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