2013-06-21 00:32:08 +02:00
|
|
|
<?php
|
|
|
|
|
2016-06-15 06:03:16 +02:00
|
|
|
namespace SilverStripe\ORM\Queries;
|
|
|
|
|
2013-06-21 00:32:08 +02:00
|
|
|
/**
|
|
|
|
* Represents a where condition that is dynamically generated. Maybe be stored
|
|
|
|
* within a list of conditions, altered, and be allowed to affect the result
|
|
|
|
* of the parent sql query during future execution.
|
2014-08-15 08:53:05 +02:00
|
|
|
*
|
2013-06-21 00:32:08 +02:00
|
|
|
* @package framework
|
2016-06-15 06:03:16 +02:00
|
|
|
* @subpackage orm
|
2013-06-21 00:32:08 +02:00
|
|
|
*/
|
|
|
|
interface SQLConditionGroup {
|
2014-08-15 08:53:05 +02:00
|
|
|
|
2013-06-21 00:32:08 +02:00
|
|
|
/**
|
|
|
|
* Determines the resulting SQL along with parameters for the group
|
2014-08-15 08:53:05 +02:00
|
|
|
*
|
2013-06-21 00:32:08 +02:00
|
|
|
* @param array $parameters Out list of parameters
|
|
|
|
* @return string The complete SQL string for this item
|
|
|
|
*/
|
|
|
|
function conditionSQL(&$parameters);
|
|
|
|
}
|