MCPcopy Create free account
hub / github.com/Rello/analytics / getTemplate

Method getTemplate

lib/Datasource/Regex.php:51–60  ·  view source on GitHub ↗

* @return array available options of the data source */

()

Source from the content-addressed store, hash-verified

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

Callers 2

getTemplatesMethod · 0.45
buildDatasourceIndexMethod · 0.45

Calls 1

tMethod · 0.45

Tested by

no test coverage detected