CompositeExpression

class OC\DB\QueryBuilder\CompositeExpression
Source:lib/private/DB/QueryBuilder/CompositeExpression.php#28
Implements:OCP\DB\QueryBuilder\ICompositeExpression Countable

Properties

protected static property OC\DB\QueryBuilder\CompositeExpression::$compositeExpression
Source:lib/private/DB/QueryBuilder/CompositeExpression.php#30
Type:\Doctrine\DBAL\Query\Expression\CompositeExpression

Methods

public OC\DB\QueryBuilder\CompositeExpression::__construct($compositeExpression)
Constructor.
Source:

lib/private/DB/QueryBuilder/CompositeExpression.php#37

Parameters:
  • $compositeExpression (Doctrine\DBAL\Query\Expression\CompositeExpression)
public OC\DB\QueryBuilder\CompositeExpression::addMultiple($parts=[])
Adds multiple parts to composite expression.
Source:

lib/private/DB/QueryBuilder/CompositeExpression.php#48

Parameters:
  • $parts (array)
Returns:

\OCP\DB\QueryBuilder\ICompositeExpression

public OC\DB\QueryBuilder\CompositeExpression::add($part)
Adds an expression to composite expression.
Source:

lib/private/DB/QueryBuilder/CompositeExpression.php#61

Parameters:
  • $part (mixed)
Returns:

\OCP\DB\QueryBuilder\ICompositeExpression

public OC\DB\QueryBuilder\CompositeExpression::count()
Retrieves the amount of expressions on composite expression.
Source:lib/private/DB/QueryBuilder/CompositeExpression.php#72
Returns:int
public OC\DB\QueryBuilder\CompositeExpression::getType()
Returns the type of this composite expression (AND/OR).
Source:lib/private/DB/QueryBuilder/CompositeExpression.php#81
Returns:string
public OC\DB\QueryBuilder\CompositeExpression::__toString()
Retrieves the string representation of this composite expression.
Source:lib/private/DB/QueryBuilder/CompositeExpression.php#90
Returns:string