PHP Class eZ\Publish\Core\Persistence\Legacy\Content\Gateway\DoctrineDatabase\QueryBuilder

Datei anzeigen Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Property Type Description
$dbHandler eZ\Publish\Core\Persistence\Database\DatabaseHandler Database handler.

Public Methods

Method Description
__construct ( eZ\Publish\Core\Persistence\Database\DatabaseHandler $dbHandler ) Creates a new query builder.
createFindQuery ( array $translations = null ) : eZ\Publish\Core\Persistence\Database\SelectQuery Creates a select query for full content objects, used by Content load.
createNamesQuery ( ) : eZ\Publish\Core\Persistence\Database\SelectQuery Create select query to query content name data.
createRelationFindQuery ( ) : eZ\Publish\Core\Persistence\Database\SelectQuery Creates a select query for content relations.
createVersionInfoFindQuery ( ) : eZ\Publish\Core\Persistence\Database\SelectQuery Creates a select query for content version objects, used for version loading w/o fields.

Method Details

__construct() public method

Creates a new query builder.
public __construct ( eZ\Publish\Core\Persistence\Database\DatabaseHandler $dbHandler )
$dbHandler eZ\Publish\Core\Persistence\Database\DatabaseHandler

createFindQuery() public method

Creates a select query with all necessary joins to fetch a complete content object. Does not apply any WHERE conditions unless translations are provided, and does not contain name data as it will lead to very large result set {@see \createNamesQuery}.
public createFindQuery ( array $translations = null ) : eZ\Publish\Core\Persistence\Database\SelectQuery
$translations array
return eZ\Publish\Core\Persistence\Database\SelectQuery

createNamesQuery() public method

Create select query to query content name data.
public createNamesQuery ( ) : eZ\Publish\Core\Persistence\Database\SelectQuery
return eZ\Publish\Core\Persistence\Database\SelectQuery

createRelationFindQuery() public method

Creates a select query for content relations.
public createRelationFindQuery ( ) : eZ\Publish\Core\Persistence\Database\SelectQuery
return eZ\Publish\Core\Persistence\Database\SelectQuery

createVersionInfoFindQuery() public method

Creates a select query with all necessary joins to fetch a complete content object. Does not apply any WHERE conditions, and does not contain name data as it will lead to large result set {@see \createNamesQuery}.
public createVersionInfoFindQuery ( ) : eZ\Publish\Core\Persistence\Database\SelectQuery
return eZ\Publish\Core\Persistence\Database\SelectQuery

Property Details

$dbHandler protected_oe property

Database handler.
protected DatabaseHandler,eZ\Publish\Core\Persistence\Database $dbHandler
return eZ\Publish\Core\Persistence\Database\DatabaseHandler