Lines Matching refs:data

12  * the actual data tables as well as updating the meta information in our meta data tables.
16 * Note: even though data tables use a data_ prefix in the database, this prefix is internal only and should
24 * @var array The posted new data for the schema
27 protected $data = [];
57 * @param array $data The defining of the table (basically what get's posted in the schema editor form)
60 public function __construct($table, $data)
65 $this->data = $data;
86 // create the data table if new schema
114 if (isset($this->data['cols'])) foreach ($this->data['cols'] as $idx => $column) {
115 $this->data['cols'][$idx]['label'] = $this->fixLabel($column['label'], $labels);
118 if (isset($this->data['new'])) foreach ($this->data['new'] as $idx => $column) {
119 $this->data['new'][$idx]['label'] = $this->fixLabel($column['label'], $labels);
141 $this->data['cols']['label'] = $fixedlabel;
154 $config = $this->data['config'] ?? '{}';
176 if (isset($this->data['cols'][$column->getColref()])) {
179 $newEntry['config'] = $this->data['cols'][$column->getColref()]['config'];
180 $newEntry['label'] = $this->data['cols'][$column->getColref()]['label'];
181 $newEntry['ismulti'] = $this->data['cols'][$column->getColref()]['ismulti'] ?? 0;
182 $newEntry['class'] = $this->data['cols'][$column->getColref()]['class'];
183 $sort = $this->data['cols'][$column->getColref()]['sort'];
184 $enabled = (bool)($this->data['cols'][$column->getColref()]['isenabled'] ?? 0);
258 if (!isset($this->data['new'])) return true;
262 foreach ($this->data['new'] as $column) {
277 // add new column to the data table
307 * Create a completely new data table with no columns yet also create the appropriate
346 * Add an additional column to the existing data table