MediaWiki master
Wikimedia\Rdbms\AndExpressionGroup Class Reference

Representing a group of expressions chained via AND. More...

Inherits Wikimedia\Rdbms\ExpressionGroup.

Collaboration diagram for Wikimedia\Rdbms\AndExpressionGroup:

Public Member Functions

 and (string $field, string $op, $value)
 
 andExpr (IExpression $expr)
 
- Public Member Functions inherited from Wikimedia\Rdbms\ExpressionGroup
 __construct (IExpression ... $children)
 
 toGeneralizedSql ()
 Return SQL for aggregated logging.
 
 toSql (DbQuoter $dbQuoter)
 

Protected Member Functions

 getType ()
 
- Protected Member Functions inherited from Wikimedia\Rdbms\ExpressionGroup
 add (IExpression $expression)
 

Additional Inherited Members

- Public Attributes inherited from Wikimedia\Rdbms\IExpression
const ACCEPTABLE_OPERATORS = [ '>', '<', '!=', '=', '>=', '<=', self::LIKE, self::NOT_LIKE ]
 
const LIKE = 'LIKE'
 
const NOT_LIKE = 'NOT LIKE'
 
- Protected Attributes inherited from Wikimedia\Rdbms\ExpressionGroup
array IExpression[] $children = []
 

Detailed Description

Representing a group of expressions chained via AND.

Since
1.42

Definition at line 10 of file AndExpressionGroup.php.

Member Function Documentation

◆ and()

Wikimedia\Rdbms\AndExpressionGroup::and ( string $field,
string $op,
$value )
Parameters
string$field
string$opOne of '>', '<', '!=', '=', '>=', '<=', IExpression::LIKE, IExpression::NOT_LIKE
?scalar|RawSQLValue|Blob|LikeValue|non-empty-list<scalar|Blob>$value

Definition at line 28 of file AndExpressionGroup.php.

◆ andExpr()

Wikimedia\Rdbms\AndExpressionGroup::andExpr ( IExpression $expr)
Parameters
IExpression$expr
Returns
AndExpressionGroup

Definition at line 39 of file AndExpressionGroup.php.

◆ getType()

Wikimedia\Rdbms\AndExpressionGroup::getType ( )
protected

Reimplemented from Wikimedia\Rdbms\ExpressionGroup.

Definition at line 11 of file AndExpressionGroup.php.


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