Lines Matching refs:column

94         // update column info
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);
166 * Updates all the existing column infos and adds them to the new schema
170 foreach ($this->oldschema->getColumns() as $column) {
171 $oldEntry = $column->getType()->getAsEntry();
172 $oldTid = $column->getTid();
175 $sort = $column->getSort();
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);
193 $this->migrateSingleToMulti($this->oldschema->getTable(), $column->getColref());
203 'colref' => $column->getColref(),
262 foreach ($this->data['new'] as $column) {
263 if (!$column['isenabled']) continue; // we do not add a disabled column
267 $newEntry['config'] = $column['config'] ?? '{}';
268 $newEntry['label'] = $column['label'];
269 $newEntry['ismulti'] = $column['ismulti'] ?? 0;
270 $newEntry['class'] = $column['class'];
271 $sort = $column['sort'];
274 // only save if the column got a name
277 // add new column to the data table
346 * Add an additional column to the existing data table
348 * @param int $index the new column index to add