Complex extends Mapper
AbstractYes
Class will help to prepare common entities
Table of Contents
Constants
- NEGATIVE_ANSWER = 'N'
- POSITIVE_ANSWER = 'Y'
Methods
- create() : EntityInterface|Event|Connection|Section|SectionConnection|EventConnection
- delete() : object|null
- deleteByFilter() : $this
- deleteMap() : void
- getByEntityObject() : EntityInterface|null
- getById() : EntityInterface|null
- getMap() : Map
- resetCacheById() : $this
- update() : Event
Constants
NEGATIVE_ANSWER
public
mixed
NEGATIVE_ANSWER
= 'N'
POSITIVE_ANSWER
public
mixed
POSITIVE_ANSWER
= 'Y'
Methods
create()
public
create(EntityInterface $entity[, array<string|int, mixed> $params = [] ]) : EntityInterface|Event|Connection|Section|SectionConnection|EventConnection
Parameters
- $entity : EntityInterface
- $params : array<string|int, mixed> = []
Tags
Return values
EntityInterface|Event|Connection|Section|SectionConnection|EventConnectiondelete()
public
delete(EntityInterface $entity[, array<string|int, mixed> $params = ['softDelete' => true] ]) : object|null
Parameters
- $entity : EntityInterface
- $params : array<string|int, mixed> = ['softDelete' => true]
Return values
object|nulldeleteByFilter()
public
deleteByFilter(mixed $filter[, array<string|int, mixed> $params = ['softDelete' => true] ]) : $this
Parameters
- $filter : mixed
- $params : array<string|int, mixed> = ['softDelete' => true]
Tags
Return values
$thisdeleteMap()
public
deleteMap(EntityMap $map[, array<string|int, mixed> $params = ['softDelete' => true] ]) : void
Parameters
- $map : EntityMap
- $params : array<string|int, mixed> = ['softDelete' => true]
Tags
getByEntityObject()
public
getByEntityObject(mixed $entityObject) : EntityInterface|null
Parameters
- $entityObject : mixed
Tags
Return values
EntityInterface|nullgetById()
public
getById(int $id) : EntityInterface|null
Parameters
- $id : int
Tags
Return values
EntityInterface|nullgetMap()
public
getMap(array<string|int, mixed> $filter[, int|null $limit = null ][, array<string|int, mixed>|null $order = null ]) : Map
Parameters
- $filter : array<string|int, mixed>
- $limit : int|null = null
- $order : array<string|int, mixed>|null = null
Tags
Return values
MapresetCacheById()
public
resetCacheById(int $id) : $this
Parameters
- $id : int
Return values
$thisupdate()
public
update(EntityInterface $entity[, array<string|int, mixed> $params = [] ]) : Event
Parameters
- $entity : EntityInterface
- $params : array<string|int, mixed> = []