class SeoModel extends AbstractModel

Constants

EVENT_PREFIX

Properties

protected EventDispatcherInterface $eventDispatcher from AbstractModel
protected AbstractRepository $repository from AbstractModel

Methods

__construct(EventDispatcherInterface $eventDispatcher, DataProcessor $dataProcessor, AbstractRepository $repository)

AbstractModel constructor.

bool|int
save(array $data, null|int $entryId = null)

No description

dispatchBeforeSaveEvent(AbstractRepository $repository, int|null|array $entryId, array $filteredData, array $rawData, bool $isNewEntry)

No description

dispatchEvent(string $eventName, int|null|array $entryId, bool $isNewEntry, array $filteredData = [], array $rawData = [])

No description

array
prepareData(array $rawData)

No description

array
getAllowedColumns()

No description

dispatchAfterSaveEvent(AbstractRepository $repository, int|null|array $entryId, array $filteredData, array $rawData, bool $isNewEntry)

No description

int
delete(int|array $entryId)

No description

array
getOneById(int $entryId)

No description

Details

in AbstractModel at line 40
__construct(EventDispatcherInterface $eventDispatcher, DataProcessor $dataProcessor, AbstractRepository $repository)

AbstractModel constructor.

Parameters

EventDispatcherInterface $eventDispatcher
DataProcessor $dataProcessor
AbstractRepository $repository

at line 20
bool|int save(array $data, null|int $entryId = null)

Parameters

array $data
null|int $entryId

Return Value

bool|int

in AbstractModel at line 84
protected dispatchBeforeSaveEvent(AbstractRepository $repository, int|null|array $entryId, array $filteredData, array $rawData, bool $isNewEntry)

Parameters

AbstractRepository $repository
int|null|array $entryId
array $filteredData
array $rawData
bool $isNewEntry

in AbstractModel at line 108
protected dispatchEvent(string $eventName, int|null|array $entryId, bool $isNewEntry, array $filteredData = [], array $rawData = [])

Parameters

string $eventName
int|null|array $entryId
bool $isNewEntry
array $filteredData
array $rawData

in AbstractModel at line 120
protected array prepareData(array $rawData)

Parameters

array $rawData

Return Value

array

at line 35
protected array getAllowedColumns()

Return Value

array

in AbstractModel at line 137
protected dispatchAfterSaveEvent(AbstractRepository $repository, int|null|array $entryId, array $filteredData, array $rawData, bool $isNewEntry)

Parameters

AbstractRepository $repository
int|null|array $entryId
array $filteredData
array $rawData
bool $isNewEntry

in AbstractModel at line 158
int delete(int|array $entryId)

Parameters

int|array $entryId

Return Value

int

in AbstractModel at line 188
array getOneById(int $entryId)

Parameters

int $entryId

Return Value

array

in AbstractModel at line 196
protected AbstractRepository getRepository()

Return Value

AbstractRepository