TextDate extends ParamArray
Message Parameter Class.
Table of Contents
Methods
- __clone() : mixed
- __construct() : mixed
- add() : static
- Append collection with new item.
- addValue() : static
- delete() : Result
- Delete from the database all entities that are in the registry and have an id
- detectType() : self
- filter() : $this
- find() : static
- getAny() : T|null
- getCollectionElementClass() : string|ActiveRecord
- Returns collection item's class name.
- getDataClass() : string|DataManager
- Returns ORM tablet class name.
- getDataEntityCollection() : Collection
- Before external call, call prepare method to update the state of the entity @see BaseLinkCollection::prepareFields()
- getDefaultValue() : array<string|int, mixed>
- getMessageId() : int|null
- getName() : string|null
- getPrimaryIds() : array<string|int, int>
- getRegistry() : Registry|null
- Return link of the object's registry.
- getType() : string
- getValue() : array<string|int, string>
- hasUnsaved() : bool
- hasValue() : bool
- isChanged() : bool
- Tells true if object has been changed.
- isDeleted() : bool
- Tells true if object marked to drop.
- isHidden() : bool
- isValid() : Result
- load() : Result
- Restores object state from database.
- markChanged() : static
- Marks object changed.
- markDrop() : static
- Marks object to drop on save.
- merge() : static
- offsetGet() : MessageParameter|Param
- offsetSet() : void
- Alias to add method.
- save() : Result
- Saves collection objects states into database.
- setMessageId() : self
- setName() : self
- setRegistry() : self
- setType() : $this
- setValue() : static
- toPullFormat() : mixed
- toRestFormat() : array<string|int, string>|null
- unsetByKeys() : void
- unsetValue() : static
Methods
__clone()
public
__clone() : mixed
__construct()
public
__construct([mixed $source = null ]) : mixed
Parameters
- $source : mixed = null
add()
Append collection with new item.
public
add(ActiveRecord $entry) : static
Parameters
- $entry : ActiveRecord
Tags
Return values
staticaddValue()
public
addValue(int|string $value) : static
Parameters
- $value : int|string
Return values
staticdelete()
Delete from the database all entities that are in the registry and have an id
public
delete() : Result
Return values
ResultdetectType()
public
detectType() : self
Return values
selffilter()
public
filter(callable $predicate) : $this
Parameters
- $predicate : callable
Return values
$thisfind()
public
static find(array<string|int, mixed> $filter, array<string|int, mixed> $order[, int|null $limit = null ][, Context|null $context = null ]) : static
Parameters
- $filter : array<string|int, mixed>
- $order : array<string|int, mixed>
- $limit : int|null = null
- $context : Context|null = null
Return values
staticgetAny()
public
getAny() : T|null
Return values
T|nullgetCollectionElementClass()
Returns collection item's class name.
public
static getCollectionElementClass() : string|ActiveRecord
Return values
string|ActiveRecordgetDataClass()
Returns ORM tablet class name.
public
final static getDataClass() : string|DataManager
Return values
string|DataManagergetDataEntityCollection()
Before external call, call prepare method to update the state of the entity @see BaseLinkCollection::prepareFields()
public
getDataEntityCollection() : Collection
Return values
CollectiongetDefaultValue()
public
getDefaultValue() : array<string|int, mixed>
Return values
array<string|int, mixed>getMessageId()
public
getMessageId() : int|null
Return values
int|nullgetName()
public
getName() : string|null
Return values
string|nullgetPrimaryIds()
public
getPrimaryIds() : array<string|int, int>
Return values
array<string|int, int>getRegistry()
Return link of the object's registry.
public
getRegistry() : Registry|null
Return values
Registry|nullgetType()
public
getType() : string
Return values
stringgetValue()
public
getValue() : array<string|int, string>
Return values
array<string|int, string>hasUnsaved()
public
hasUnsaved() : bool
Return values
boolhasValue()
public
hasValue() : bool
Return values
boolisChanged()
Tells true if object has been changed.
public
isChanged() : bool
Return values
boolisDeleted()
Tells true if object marked to drop.
public
isDeleted() : bool
Return values
boolisHidden()
public
isHidden() : bool
Return values
boolisValid()
public
isValid() : Result
Return values
Resultload()
Restores object state from database.
public
load(array<string|int, mixed>|EO_MessageParam_Collection|Collection $source) : Result
Parameters
- $source : array<string|int, mixed>|EO_MessageParam_Collection|Collection
Return values
ResultmarkChanged()
Marks object changed.
public
markChanged([bool|null $state = null ]) : static
Parameters
- $state : bool|null = null
Return values
staticmarkDrop()
Marks object to drop on save.
public
markDrop() : static
Return values
staticmerge()
public
merge(Registry<string|int, T> $registry) : static
Parameters
- $registry : Registry<string|int, T>
Return values
staticoffsetGet()
public
offsetGet(mixed $offset) : MessageParameter|Param
Parameters
- $offset : mixed
Return values
MessageParameter|ParamoffsetSet()
Alias to add method.
public
offsetSet(mixed $offset, mixed $entry) : void
Parameters
- $offset : mixed
- $entry : mixed
save()
Saves collection objects states into database.
public
save([bool $isGroupSave = false ]) : Result
Parameters
- $isGroupSave : bool = false
Return values
ResultsetMessageId()
public
setMessageId(int $messageId) : self
Parameters
- $messageId : int
Return values
selfsetName()
public
setName(string $name) : self
Parameters
- $name : string
Return values
selfsetRegistry()
public
setRegistry(Registry $registry) : self
Parameters
- $registry : Registry
Return values
selfsetType()
public
setType(string $type) : $this
Parameters
- $type : string
Return values
$thissetValue()
public
setValue(array<string|int, int>|array<string|int, string> $values) : static
Parameters
- $values : array<string|int, int>|array<string|int, string>
Return values
statictoPullFormat()
public
toPullFormat() : mixed
toRestFormat()
public
toRestFormat() : array<string|int, string>|null
Return values
array<string|int, string>|nullunsetByKeys()
public
unsetByKeys(array<string|int, mixed> $keys) : void
Parameters
- $keys : array<string|int, mixed>
unsetValue()
public
unsetValue([array<string|int, int>|array<string|int, string> $values = [] ]) : static
Parameters
- $values : array<string|int, int>|array<string|int, string> = []