ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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)
 
 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 47 of file class.arHaving.php.

48 {
49 $statement = '';
50 if ($this->getTableName()) {
51 $statement .= $this->getTableName() . '.';
52 }
53 $statement .= $this->getFieldname() . ' ' . $this->getOperator() . ' "' . $this->getValue() . '"';
55
56 return $this->getStatement();
57 }
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 63 of file class.arHaving.php.

64 {
65 return $this->fieldname;
66 }

References $fieldname.

Referenced by asSQLStatement().

+ Here is the caller graph for this function:

◆ getGlue()

arHaving::getGlue ( )
Returns
string

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

136 {
137 return $this->glue;
138 }

References $glue.

◆ getOperator()

arHaving::getOperator ( )
Returns
string

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

100 {
101 return $this->operator;
102 }

References $operator.

Referenced by asSQLStatement().

+ Here is the caller graph for this function:

◆ getStatement()

arHaving::getStatement ( )
Returns
string

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

118 {
119 return $this->statement;
120 }

References $statement.

Referenced by asSQLStatement().

+ Here is the caller graph for this function:

◆ getTableName()

arHaving::getTableName ( )
Returns
string

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

154 {
155 return $this->table_name;
156 }

References $table_name.

Referenced by asSQLStatement().

+ Here is the caller graph for this function:

◆ getValue()

arHaving::getValue ( )
Returns
mixed

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

82 {
83 return $this->value;
84 }

References $value.

Referenced by asSQLStatement().

+ Here is the caller graph for this function:

◆ setFieldname()

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

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

73 {
74 $this->fieldname = $fieldname;
75 }

References $fieldname.

◆ setGlue()

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

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

145 {
146 $this->glue = $glue;
147 }

References $glue.

◆ setOperator()

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

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

109 {
110 $this->operator = $operator;
111 }

References $operator.

◆ setStatement()

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

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

127 {
128 $this->statement = $statement;
129 }

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 162 of file class.arHaving.php.

163 {
164 $this->table_name = $table_name;
165 }

References $table_name.

◆ setValue()

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

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

91 {
92 $this->value = $value;
93 }

References $value.

Field Documentation

◆ $fieldname

arHaving::$fieldname = ''
protected

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

Referenced by getFieldname(), and setFieldname().

◆ $glue

arHaving::$glue = 'AND'
protected

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

Referenced by getGlue(), and setGlue().

◆ $operator

arHaving::$operator = '='
protected

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

Referenced by getOperator(), and setOperator().

◆ $statement

arHaving::$statement = ''
protected

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

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

◆ $table_name

arHaving::$table_name = ''
protected

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

Referenced by getTableName(), and setTableName().

◆ $value

arHaving::$value
protected

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

Referenced by getValue(), and setValue().


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