Copied!

AbstractTranslationGateway

AbstractTranslationGateway.php : 18
Extends AbstractDoctrineDatabase
Tags
Extends

\Ibexa\Contracts\CorePersistence\Gateway\AbstractDoctrineDatabase<T>

Methods

publiccopy()

AbstractTranslationGateway.php : 136
public copy(int $fromId, int $toId) : void

Parameters

Name Type Default value Description
$fromId int - -
$toId int - -
Tags
Throws
Exception
Throws
Exception

publiccountByTranslatableId()

AbstractTranslationGateway.php : 47
public countByTranslatableId(int $id) : int

Parameters

Name Type Default value Description
$id int - -

Return values

int

Tags
Throws
Exception
Throws
Exception
Throws
MappingException

publicdelete()

AbstractTranslationGateway.php : 122
public delete(int $id, int $languageId) : void

Parameters

Name Type Default value Description
$id int - -
$languageId int - -
Tags
Throws
Exception

publicexists()

AbstractTranslationGateway.php : 96
public exists(int $id, int $languageId) : bool

Parameters

Name Type Default value Description
$id int - -
$languageId int - -

Return values

bool

Tags
Throws
Exception
Throws
Exception

publicfindByTranslatableId()

AbstractTranslationGateway.php : 34
public findByTranslatableId(int $id) : array<string|int, T>

Parameters

Name Type Default value Description
$id int - -

Return values

array<string|int, T>

Tags
Throws
Exception
Throws
Exception

publicfindByTranslatableIds()

AbstractTranslationGateway.php : 58
public findByTranslatableIds(array<string|int, mixed> $ids) : array<string|int, T>

Parameters

Name Type Default value Description
$ids array<string|int, mixed> - -

Return values

array<string|int, T>

Tags
Throws
Exception
Throws
Exception

publicgetMetadata()

AbstractTranslationGateway.php : 22
public getMetadata() : TranslationDoctrineSchemaMetadataInterface

Return values

TranslationDoctrineSchemaMetadataInterface

publicinsert()

AbstractTranslationGateway.php : 69
public insert(int $id, int $languageId, array<string|int, mixed> $data) : int

Parameters

Name Type Default value Description
$id int - -
$languageId int - -
$data array<string|int, mixed> - -

Return values

int

Tags
Throws
Exception

publicsave()

AbstractTranslationGateway.php : 110
public save(int $id, int $languageId, array<string|int, mixed> $data) : void

Parameters

Name Type Default value Description
$id int - -
$languageId int - -
$data array<string|int, mixed> - -
Tags
Throws
Exception
Throws
Exception

publicupdate()

AbstractTranslationGateway.php : 82
public update(int $id, int $languageId, array<string|int, mixed> $data) : void

Parameters

Name Type Default value Description
$id int - -
$languageId int - -
$data array<string|int, mixed> - -
Tags
Throws
Exception

protectedbuildMetadata()

AbstractTranslationGateway.php : 20
protected abstract buildMetadata() : TranslationDoctrineSchemaMetadataInterface

Return values

TranslationDoctrineSchemaMetadataInterface

protectedgetLanguageIdColumn()

AbstractTranslationGateway.php : 148
protected getLanguageIdColumn() : string

Return values

string

protectedgetTranslatableIdColumn()

AbstractTranslationGateway.php : 153
protected getTranslatableIdColumn() : string

Return values

string