ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 47 of file class.arHaving.php.

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

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

◆ getFieldname()

arHaving::getFieldname ( )
Returns
string

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

References $fieldname.

Referenced by asSQLStatement().

64  {
65  return $this->fieldname;
66  }
+ Here is the caller graph for this function:

◆ getGlue()

arHaving::getGlue ( )
Returns
string

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

References $glue.

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

◆ getOperator()

arHaving::getOperator ( )
Returns
string

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

Referenced by asSQLStatement().

100  {
101  return $this->operator;
102  }
+ Here is the caller graph for this function:

◆ getStatement()

arHaving::getStatement ( )
Returns
string

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

References $statement.

Referenced by asSQLStatement().

118  {
119  return $this->statement;
120  }
+ Here is the caller graph for this function:

◆ getTableName()

arHaving::getTableName ( )
Returns
string

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

References $table_name.

Referenced by asSQLStatement().

154  {
155  return $this->table_name;
156  }
+ Here is the caller graph for this function:

◆ getValue()

arHaving::getValue ( )
Returns
mixed

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

References $value.

Referenced by asSQLStatement().

82  {
83  return $this->value;
84  }
+ Here is the caller graph for this function:

◆ setFieldname()

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

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

References $fieldname.

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

◆ setGlue()

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

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

References $glue.

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

◆ setOperator()

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

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

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

◆ setStatement()

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

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

References $statement.

Referenced by asSQLStatement().

127  {
128  $this->statement = $statement;
129  }
+ 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.

References $table_name.

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

◆ setValue()

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

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

References $value.

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

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.

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