/plugin/pagelist/ |
H A D | helper.php | 189 * (optional) Adds an extra column named $col for plugin $plugin. 193 * - th($col, &$class=null) or th() 194 * - td($id, $col=null, &$class=null) or td($id) 198 * @param string $col column name. Assumption: unique between all builtin columns and plugin supplied columns 200 public function addColumn($plugin, $col) 203 if (!isset($this->plugins[$plugin]) || !in_array($col, $this->plugins[$plugin])) { 204 $this->plugins[$plugin][] = $col; 206 $this->column[$col] = true; 212 * @param string $col column name 216 public function modifyColumn($col, 174 addColumn($plugin, $col) global() argument 190 modifyColumn($col, $value) global() argument 697 pluginCell($plugin, $col, $id) global() argument [all...] |
/plugin/pagequery/ |
H A D | PageQuery.php | 183 // name/title columns already exists by default (col 1,2) 799 $col = 0; 849 if ($can_start_col === false && $col < $opt['cols'] && $cur_height >= $col_height) { 851 $col++;
|
/plugin/struct/meta/ |
H A D | AccessDataValidator.php | 72 foreach ($this->access->getSchema()->getColumns() as $col) { 73 $label = $col->getType()->getLabel(); 74 $result = $result && $this->validateValue($col, $this->data[$label]);
|
H A D | AccessTable.php | 138 foreach ($this->schema->getColumns() as $col) { 139 $this->labels[$col->getColref()] = $col->getType()->getLabel(); 215 $this->singleCols[] = 'col' . $colrefs[$colname]; 461 foreach ($this->schema->getColumns(false) as $col) { 464 $val = (string) $DBdata[0]['out' . $col->getColref()]; 470 if ($col->isMulti()) { 475 $value = new Value($col, $val); 478 if ($this->opt_skipempty && !$col->isVisibleInPage()) continue; //FIXME is this a correct assumption? 482 $data[$col [all...] |
H A D | AccessTablePage.php | 33 foreach ($this->schema->getColumns() as $col) { 34 if ($col->isMulti()) { 35 $data[$col->getLabel()] = []; 37 $data[$col->getLabel()] = '';
|
H A D | AggregationTable.php | 130 foreach ($this->columns as $col) { 131 if ($column === $col->getFullQualifiedLabel()) { 132 $column = $col->getTranslatedLabel();
|
H A D | CSVExporter.php | 69 foreach ($columns as $col) { 70 $row .= $this->escape($col->getLabel());
|
H A D | CSVImporter.php | 25 /** @var Column[] The single values to store index => col */ 120 $col = $this->schema->findColumn($head); 122 if (!$col) { 128 if (!$col->isEnabled()) continue; 129 $this->columns[$i] = $col; 163 * @param Column $col the column of that value 167 protected function validateValue(Column $col, &$rawvalue) argument
|
H A D | CSVPageImporter.php | 62 function ($keys, Column $col) { 63 if (!in_array($col->getLabel(), $keys, true)) { 66 $index = array_search($col->getLabel(), $keys, true); 67 $keys[$index] = $col->getFullQualifiedLabel(); 123 * @param Column $col 127 protected function validateValue(Column $col, &$rawvalue) 130 if ($col->getLabel() == 'pid') { 149 return parent::validateValue($col, $rawvalue); 131 validateValue(Column $col, & $rawvalue) global() argument
|
H A D | CSVSerialImporter.php | 66 * @param Column $col 70 protected function validateValue(Column $col, &$rawvalue) argument 73 if ($col->getLabel() !== 'pid' || !$INPUT->bool('createPage')) { 74 return parent::validateValue($col, $rawvalue);
|
H A D | Column.php | 124 return 'col' . $this->colref; 135 $col = $this->getColName($enforceSingleColumn); 136 if ($this->table) $col = 'data_' . $this->table . '.' . $col; 137 return $col;
|
H A D | ConfigParser.php | 63 case 'col': 220 foreach ($cols as $col) { 221 $col = trim(strtolower($col)); 222 if ($col[0] == 'c') { 224 } elseif ($col[0] == 'r') { 226 } elseif ($col[0] == 'l') {
|
H A D | PageColumn.php | 10 * Just like a column, but does not reference one of the col* data columns but the pid column. 49 $col = $this->getColName($enforceSingleColumn); 50 if ($this->table) $col = 'data_' . $this->table . '.' . $col; 51 return $col;
|
H A D | RevisionColumn.php | 10 * Just like a column, but does not reference one of the col* data columns but the rev column. 50 $col = $this->getColName($enforceSingleColumn); 51 if ($this->table) $col = 'data_' . $this->table . '.' . $col; 52 return $col;
|
H A D | Schema.php | 328 static fn(Column $col) => $col->isEnabled() 345 foreach ($this->columns as $col) { 346 if ($col->isEnabled() && PhpString::strtolower($col->getLabel()) === PhpString::strtolower($name)) { 347 return $col;
|
H A D | SchemaEditor.php | 62 foreach ($this->schema->getColumns() as $col) { 63 $form->addHTML($this->adminColumn($col->getColref(), $col)); 110 * @param Column $col 115 protected function adminColumn($column_id, Column $col, $key = 'cols') 119 $class = $col->isEnabled() ? '' : 'disabled'; 124 $html .= '<input type="text" name="' . $base . '[sort]" value="' . hsc($col->getSort()) . '" size="3">'; 128 $html .= '<input type="text" name="' . $base . '[label]" value="' . hsc($col->getType()->getLabel()) . '">'; 132 $checked = $col->getType()->isMulti() ? 'checked="checked"' : ''; 137 $config = json_encode($col 113 adminColumn($column_id, Column $col, $key = 'cols') global() argument [all...] |
H A D | Search.php | 111 foreach ($this->columns as $key => $col) { 112 if ($col->getLabel() === $colname) unset($this->columns[$key]); 117 $col = $this->findColumn($colname); 118 if (!$col) return; //FIXME do we really want to ignore missing columns? 119 $this->columns[] = $col; 134 $col = $this->findColumn($colname); 135 if (!$col) return; //FIXME do we really want to ignore missing columns? 137 $this->sortby[$col->getFullQualifiedLabel()] = [$col, $asc, $nc]; 195 * @return array|null [Column col, strin [all...] |
H A D | SearchCloud.php | 58 $col = $this->columns[0]; 59 if ($col->isMulti()) { 60 $multitable = "multi_{$col->getTable()}"; 70 $MN.colref = {$col->getColref()}" 73 $col->getType()->select($QB, $MN, 'value', 'tag'); 76 $col->getType()->select($QB, $datatable, $col->getColName(), 'tag'); 77 $colname = $datatable . '.' . $col->getColName();
|
H A D | SearchConfig.php | 49 if (!empty($config['cols'])) foreach ($config['cols'] as $col) { 50 $this->addColumn($col);
|
H A D | SummaryColumn.php | 10 * Just like a column, but does not reference one of the col* data columns but the pid column. 50 $col = 'titles.' . $this->getColName($enforceSingleColumn); 51 return $col;
|
H A D | UserColumn.php | 10 * Just like a column, but does not reference one of the col* data columns 51 $col = 'titles.' . $this->getColName($enforceSingleColumn); 52 return $col;
|
H A D | ValueValidator.php | 29 * @param Column $col the column of that value 33 public function validateValue(Column $col, &$rawvalue) 38 $type = $col->getType(); 34 validateValue(Column $col, & $rawvalue) global() argument
|
/plugin/struct/types/ |
H A D | DateTime.php | 107 $col = "$tablealias.$colname"; 113 $col = "DATETIME($rightalias.lastrev, 'unixepoch', 'localtime')"; 116 $QB->addSelectStatement($col, $alias); 129 $col = "$tablealias.$colname"; 135 $col = "DATETIME($rightalias.lastrev, 'unixepoch', 'localtime')"; 146 $add->where($op, "$col $comp $pl"); 160 $col = "$tablealias.$colname"; 165 $col = "$rightalias.lastrev"; 168 $QB->addOrderBy("$col $order");
|
/plugin/struct/action/ |
H A D | ajax.php | 67 $col = $INPUT->str('column'); 68 if (blank($col)) throw new StructException('No column provided'); 69 [$schema, $colname] = explode('.', $col, 2);
|
H A D | migration.php | 158 foreach ($cols as $col) { 159 $colno = $col['COL']; 160 $colname = "col$colno"; 181 SET col$colno = '[" . '""' . ",'||col$colno||']' 182 WHERE col$colno != '' 183 AND CAST(col$colno AS DECIMAL) = col$colno"; 254 $colnames = array_map(static fn($c) => 'col' . $c['COL'], $cols); 406 foreach ($row as $col [all...] |