mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
e7303170c2
API Remove DataObject::validateModelDefinitions, and move to DataObjectSchema API Remove deprecated 3.0 syntax for addSelect() API made DataList::createDataObject public API Move component parsing logic to DataObjectSchema API Remove support for triangular has_many / belongs_many relationships
30 lines
710 B
PHP
30 lines
710 B
PHP
<?php
|
|
|
|
namespace SilverStripe\ORM;
|
|
|
|
use SilverStripe\ORM\Queries\SQLSelect;
|
|
|
|
/**
|
|
* Allows middleware to modily finalised dataquery on a per-instance basis
|
|
*/
|
|
interface DataQueryManipulator
|
|
{
|
|
/**
|
|
* Invoked prior to getFinalisedQuery()
|
|
*
|
|
* @param DataQuery $dataQuery
|
|
* @param array $queriedColumns
|
|
* @param SQLSelect $sqlSelect
|
|
*/
|
|
public function beforeGetFinalisedQuery(DataQuery $dataQuery, $queriedColumns = [], SQLSelect $sqlSelect);
|
|
|
|
/**
|
|
* Invoked after getFinalisedQuery()
|
|
*
|
|
* @param DataQuery $dataQuery
|
|
* @param array $queriedColumns
|
|
* @param SQLSelect $sqlQuery
|
|
*/
|
|
public function afterGetFinalisedQuery(DataQuery $dataQuery, $queriedColumns = [], SQLSelect $sqlQuery);
|
|
}
|