Event extends Mapper
Table of Contents
Constants
- NEGATIVE_ANSWER = 'N'
- POSITIVE_ANSWER = 'Y'
Methods
- convertToArray() : array<string|int, mixed>
- create() : EntityInterface|Event|Connection|Section|SectionConnection|EventConnection
- delete() : object|null
- deleteByFilter() : $this
- deleteMap() : void
- getByArray() : Event|mixed
- getByEntityObject() : EntityInterface|null
- getById() : EntityInterface|null
- getCollectionByIds() : EventCollection
- getEntity() : Event|null
- getMap() : Map
- getMapFullChainByParentId() : EventMap
- patch() : Event
- resetCacheById() : $this
- update() : Event
Constants
NEGATIVE_ANSWER
public
mixed
NEGATIVE_ANSWER
= 'N'
POSITIVE_ANSWER
public
mixed
POSITIVE_ANSWER
= 'Y'
Methods
convertToArray()
public
convertToArray(Event $event) : array<string|int, mixed>
Parameters
- $event : Event
Tags
Return values
array<string|int, mixed>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
getByArray()
public
getByArray(array<string|int, mixed> $fields) : Event|mixed
Parameters
- $fields : array<string|int, mixed>
Tags
Return values
Event|mixedgetByEntityObject()
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|nullgetCollectionByIds()
public
getCollectionByIds(array<string|int, mixed> $ids, int $ownerId[, array<string|int, mixed> $fields = ['*'] ]) : EventCollection
is it unused?
Parameters
- $ids : array<string|int, mixed>
- $ownerId : int
- $fields : array<string|int, mixed> = ['*']
Tags
Return values
EventCollectiongetEntity()
public
getEntity(int $id[, array<string|int, mixed>|null $additionalParams = null ]) : Event|null
Parameters
- $id : int
- $additionalParams : array<string|int, mixed>|null = null
Tags
Return values
Event|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
MapgetMapFullChainByParentId()
public
getMapFullChainByParentId(int $id, int $ownerId[, array<string|int, mixed> $fields = ['*'] ]) : EventMap
Parameters
- $id : int
- $ownerId : int
- $fields : array<string|int, mixed> = ['*']
Tags
Return values
EventMappatch()
public
patch(Event $event, array<string|int, mixed> $fields) : Event
Parameters
- $event : Event
- $fields : array<string|int, mixed>
Tags
Return values
EventresetCacheById()
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> = []