LLMS_Quiz_Attempt_Question::get( string $key, mixed $default = '' )
Getter
Parameters Parameters
- $key
-
(string) (Required) Data key name
- $default
-
(mixed) (Optional) Default fallback value if key is unset. Default is empty string.
Default value: ''
Return Return
(mixed)
Source Source
File: includes/models/model.llms.quiz.attempt.question.php
public function get( $key, $default = '' ) {
if ( isset( $this->data[ $key ] ) ) {
return $this->data[ $key ];
}
return $default;
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.16.0 | Introduced. |