Lines Matching refs:schema
13 * schema happens in the SchemaBuilder class.
19 /** @var Schema the schema that is edited */
20 protected $schema;
27 * @param Schema $schema
29 public function __construct(Schema $schema)
31 $this->schema = $schema;
36 * Returns the Admin Form to edit the schema
48 $form->setHiddenField('table', $this->schema->getTable());
49 $form->setHiddenField('schema[id]', $this->schema->getId());
62 foreach ($this->schema->getColumns() as $col) {
67 $form->addHTML($this->adminColumn('new1', new Column($this->schema->getMaxsort() + 10, new Text()), 'new'));
73 $config = json_encode($this->schema->getConfig(), JSON_PRETTY_PRINT);
75 '<textarea name="schema[config]" id="schemaConfig" cols="45" rows="10" class="config">' .
107 * Returns the HTML to edit a single column definition of the schema
117 $base = 'schema[' . $key . '][' . $column_id . ']'; // base name for all fields