* @return array available options of the data source */
()
| 49 | * @return array available options of the data source |
| 50 | */ |
| 51 | public function getTemplate(): array |
| 52 | { |
| 53 | $template = array(); |
| 54 | $template[] = ['id' => 'url', 'name' => 'URL', 'placeholder' => 'url']; |
| 55 | $template[] = ['id' => 'name', 'name' => 'Data series description', 'placeholder' => 'optional']; |
| 56 | $template[] = ['id' => 'regex', 'name' => $this->l10n->t('valid regex'), 'placeholder' => '//']; |
| 57 | $template[] = ['id' => 'limit', 'name' => $this->l10n->t('Limit'), 'placeholder' => $this->l10n->t('Number of rows'), 'type' => 'number']; |
| 58 | $template[] = ['id' => 'timestamp', 'name' => $this->l10n->t('Timestamp of data load'), 'placeholder' => 'true-' . $this->l10n->t('Yes') . '/false-' . $this->l10n->t('No'), 'type' => 'tf']; |
| 59 | return $template; |
| 60 | } |
| 61 | |
| 62 | /** |
| 63 | * Read the Data |
no test coverage detected