ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
arHaving Class Reference

Class arHaving. More...

+ Inheritance diagram for arHaving:
+ Collaboration diagram for arHaving:

Public Member Functions

 asSQLStatement (ActiveRecord $ar)
 @description Build WHERE Statement More...
 
 getFieldname ()
 
 setFieldname ($fieldname)
 
 getValue ()
 
 setValue ($value)
 
 getOperator ()
 
 setOperator ($operator)
 
 getStatement ()
 
 setStatement ($statement)
 
 getGlue ()
 
 setGlue ($glue)
 
 getTableName ()
 
 setTableName ($table_name)
 
- Public Member Functions inherited from arStatement
 asSQLStatement (ActiveRecord $ar)
 
 asORACLEStatement (ActiveRecord $ar)
 
 getTableNameAs ()
 
 setTableNameAs ($table_name_as)
 

Protected Attributes

 $table_name = ''
 
 $fieldname = ''
 
 $value
 
 $operator = '='
 
 $statement = ''
 
 $glue = 'AND'
 
- Protected Attributes inherited from arStatement
 $table_name_as = ''
 

Detailed Description

Class arHaving.

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.arHaving.php.

Member Function Documentation

◆ asSQLStatement()

arHaving::asSQLStatement ( ActiveRecord  $ar)

@description Build WHERE Statement

Parameters
ActiveRecord$ar
Exceptions
arException
Returns
string

Reimplemented from arStatement.

Definition at line 46 of file class.arHaving.php.

46 {
47 $statement = '';
48 if ($this->getTableName()) {
49 $statement .= $this->getTableName() . '.';
50 }
51 $statement .= $this->getFieldname() . ' ' . $this->getOperator() . ' "' . $this->getValue().'"';
53
54 return $this->getStatement();
55 }
setStatement($statement)

References $statement, getFieldname(), getOperator(), getStatement(), getTableName(), getValue(), and setStatement().

+ Here is the call graph for this function:

◆ getFieldname()

arHaving::getFieldname ( )
Returns
string

Definition at line 61 of file class.arHaving.php.

61 {
62 return $this->fieldname;
63 }

References $fieldname.

Referenced by asSQLStatement().

+ Here is the caller graph for this function:

◆ getGlue()

arHaving::getGlue ( )
Returns
string

Definition at line 125 of file class.arHaving.php.

125 {
126 return $this->glue;
127 }

References $glue.

◆ getOperator()

arHaving::getOperator ( )
Returns
string

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

93 {
94 return $this->operator;
95 }

References $operator.

Referenced by asSQLStatement().

+ Here is the caller graph for this function:

◆ getStatement()

arHaving::getStatement ( )
Returns
string

Definition at line 109 of file class.arHaving.php.

109 {
110 return $this->statement;
111 }

References $statement.

Referenced by asSQLStatement().

+ Here is the caller graph for this function:

◆ getTableName()

arHaving::getTableName ( )
Returns
string

Definition at line 141 of file class.arHaving.php.

141 {
142 return $this->table_name;
143 }

References $table_name.

Referenced by asSQLStatement().

+ Here is the caller graph for this function:

◆ getValue()

arHaving::getValue ( )
Returns
mixed

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

77 {
78 return $this->value;
79 }

References $value.

Referenced by asSQLStatement().

+ Here is the caller graph for this function:

◆ setFieldname()

arHaving::setFieldname (   $fieldname)
Parameters
string$fieldname

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

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

References $fieldname.

◆ setGlue()

arHaving::setGlue (   $glue)
Parameters
string$glue

Definition at line 133 of file class.arHaving.php.

133 {
134 $this->glue = $glue;
135 }

References $glue.

◆ setOperator()

arHaving::setOperator (   $operator)
Parameters
string$operator

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

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

References $operator.

◆ setStatement()

arHaving::setStatement (   $statement)
Parameters
string$statement

Definition at line 117 of file class.arHaving.php.

117 {
118 $this->statement = $statement;
119 }

References $statement.

Referenced by asSQLStatement().

+ Here is the caller graph for this function:

◆ setTableName()

arHaving::setTableName (   $table_name)
Parameters
string$table_name

Definition at line 149 of file class.arHaving.php.

149 {
150 $this->table_name = $table_name;
151 }

References $table_name.

◆ setValue()

arHaving::setValue (   $value)
Parameters
mixed$value

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

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

References $value.

Field Documentation

◆ $fieldname

arHaving::$fieldname = ''
protected

Definition at line 19 of file class.arHaving.php.

Referenced by getFieldname(), and setFieldname().

◆ $glue

arHaving::$glue = 'AND'
protected

Definition at line 35 of file class.arHaving.php.

Referenced by getGlue(), and setGlue().

◆ $operator

arHaving::$operator = '='
protected

Definition at line 27 of file class.arHaving.php.

Referenced by getOperator(), and setOperator().

◆ $statement

arHaving::$statement = ''
protected

Definition at line 31 of file class.arHaving.php.

Referenced by asSQLStatement(), getStatement(), and setStatement().

◆ $table_name

arHaving::$table_name = ''
protected

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

Referenced by getTableName(), and setTableName().

◆ $value

arHaving::$value
protected

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

Referenced by getValue(), and setValue().


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