MediaWiki master
Wikimedia\Rdbms\OrExpressionGroup Class Reference

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

Inherits Wikimedia\Rdbms\ExpressionGroup.

Collaboration diagram for Wikimedia\Rdbms\OrExpressionGroup:

Public Member Functions

 or (string $field, string $op, $value)
 
 orExpr (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

- Static Public Member Functions inherited from Wikimedia\Rdbms\ExpressionGroup
static newFromArray (array $conds)
 
- 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 OR.

Since
1.42

Definition at line 10 of file OrExpressionGroup.php.

Member Function Documentation

◆ getType()

Wikimedia\Rdbms\OrExpressionGroup::getType ( )
protected

Reimplemented from Wikimedia\Rdbms\ExpressionGroup.

Definition at line 11 of file OrExpressionGroup.php.

◆ or()

Wikimedia\Rdbms\OrExpressionGroup::or ( 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 OrExpressionGroup.php.

◆ orExpr()

Wikimedia\Rdbms\OrExpressionGroup::orExpr ( IExpression $expr)
Parameters
IExpression$expr
Returns
OrExpressionGroup

Definition at line 39 of file OrExpressionGroup.php.


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