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)
 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)

Build WHERE Statement

Parameters
ActiveRecord$ar
Exceptions
arException
Returns
string

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

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

46  {
47  $statement = '';
48  if ($this->getTableName()) {
49  $statement .= $this->getTableName() . '.';
50  }
51  $statement .= $this->getFieldname() . ' ' . $this->getOperator() . ' "' . $this->getValue().'"';
52  $this->setStatement($statement);
53 
54  return $this->getStatement();
55  }
setStatement($statement)
+ Here is the call graph for this function:

◆ getFieldname()

arHaving::getFieldname ( )
Returns
string

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

References $fieldname.

Referenced by asSQLStatement().

61  {
62  return $this->fieldname;
63  }
+ Here is the caller graph for this function:

◆ getGlue()

arHaving::getGlue ( )
Returns
string

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

References $glue.

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

◆ getOperator()

arHaving::getOperator ( )
Returns
string

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

Referenced by asSQLStatement().

93  {
94  return $this->operator;
95  }
+ Here is the caller graph for this function:

◆ getStatement()

arHaving::getStatement ( )
Returns
string

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

References $statement.

Referenced by asSQLStatement().

109  {
110  return $this->statement;
111  }
+ Here is the caller graph for this function:

◆ getTableName()

arHaving::getTableName ( )
Returns
string

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

References $table_name.

Referenced by asSQLStatement().

141  {
142  return $this->table_name;
143  }
+ Here is the caller graph for this function:

◆ getValue()

arHaving::getValue ( )
Returns
mixed

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

References $value.

Referenced by asSQLStatement().

77  {
78  return $this->value;
79  }
+ Here is the caller graph for this function:

◆ setFieldname()

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

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

References $fieldname.

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

◆ setGlue()

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

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

References $glue.

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

◆ setOperator()

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

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

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

◆ setStatement()

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

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

References $statement.

Referenced by asSQLStatement().

117  {
118  $this->statement = $statement;
119  }
+ 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.

References $table_name.

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

◆ setValue()

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

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

References $value.

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

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.

◆ $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: