ContentItemInterface
in
Content item interface
Table of Contents
Methods
- field() : FieldInterface|null
- Get content field
- fields() : array<string|int, mixed>
- Get fields
- getId() : int|string
- Get content item id
- getType() : ContentTypeInterface
- Get content type
- getValue() : mixed
- Get field value
- runAction() : void
- Run action
- setValue() : void
- Set field value
Methods
field()
Get content field
public
field(string $fieldName) : FieldInterface|null
Parameters
- $fieldName : string
Return values
FieldInterface|nullfields()
Get fields
public
fields() : array<string|int, mixed>
Return values
array<string|int, mixed>getId()
Get content item id
public
getId() : int|string
Return values
int|stringgetType()
Get content type
public
getType() : ContentTypeInterface
Return values
ContentTypeInterfacegetValue()
Get field value
public
getValue(string $fieldName[, mixed $default = null ]) : mixed
Parameters
- $fieldName : string
- $default : mixed = null
runAction()
Run action
public
runAction(string $name[, array<string|int, mixed>|null $options = [] ]) : void
Parameters
- $name : string
- $options : array<string|int, mixed>|null = []
setValue()
Set field value
public
setValue(string $fieldName, mixed $value) : void
Parameters
- $fieldName : string
- $value : mixed