$table
$table :
Define used database table.
@var string $table name of the database table associated with the Item model.
Item Model class.
This is a laravel Model providing the structure for Comproso Test Items.
$hidden :
Blacklisting for JSON transfer.
@var array $hidden names of blacklisted properties.
implement(array|null $data)
Passing item implementation to Element.
This function passes the implementation of a specific Item to an Element or Item Type.
array|null | $data | a data row that includes all available information for a specific item extracted from a raw Test representation. @return boolean fail or success. |
generate(array|object|null $cache)
Item generation.
To provide a secured layer between a full item representation and a presented Item, a new (temporary) Item is generated containing only necessary information for presentation.
array|object|null | $cache | provides available cached information of an Item. @return object $item. |
proceed(array|object|null $cache = null)
Proceeding an item.
Uses the test taker's response to provide data and proceed the Item response or results. Therefore, the proceeding is passed to the Element/item type.
array|object|null | $cache | provides available cached information of an Item. @return mixed proceeding results. |