blob: ac5a40eda5ae3d114eb3e193fd8141035753bdec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<?php
class SchemaDb {
/**
* Schema format example.
*/
public function default_schema() {
$schema = array(
'db' => array(
'name' => 'dbname',
'charset' => 'charset',
),
'fields' => array(
1 => array(
'name' => 'field_name',
'size' => 1000,
'format' => 'numeric',
'repeat' => TRUE,
'subfields' => array(
'a' => 'test',
'b' => 'test2',
),
),
),
);
return $schema;
}
}
|