Home
last modified time | relevance | path

Searched refs:colname (Results 1 – 25 of 28) sorted by relevance

12

/plugin/struct/meta/
H A DSearch.php96 public function addColumn($colname) argument
100 $colname = substr($colname, 1);
573 * @param string $colname
578 list($colname, $table) = $this->resolveColumn($colname);
606 @list($table, $colname) = explode('.', $colname, 2);
607 if (!$colname) {
608 $colname = $table;
632 if ($colname == '%pageid%') {
635 if ($colname == '%title%') {
647 if ($colname == '%rowid%') {
[all …]
H A DAccessTable.php199 foreach ($data as $colname => $value) {
200 if (!isset($colrefs[$colname])) {
201 throw new StructException("Unknown column %s in schema.", hsc($colname));
204 $this->singleCols[] = 'col' . $colrefs[$colname];
207 $this->multiValues[] = [$colrefs[$colname], $index + 1, $multivalue];
213 $this->handleEmptyMulti($this->pid, $this->rid, $colrefs[$colname]);
498 $colname = 'col' . $colref;
513 $col->getType()->select($QB, 'DATA', $colname, $outname);
H A DSearchConfigParameters.php42 list($colname, $sort) = $confHlp->parseSort($INPUT->str(self::$PARAM_SORT));
43 $this->setSort($colname, $sort);
48 … list($colname, $comp, $value,) = $confHlp->parseFilterLine('AND', $colcomp . $filter);
49 $this->addFilter($colname, $comp, $value);
H A DSearchCloud.php69 $colname = $MN . '.value';
72 $colname = $datatable . '.' . $col->getColName();
74 $QB->addSelectStatement("COUNT($colname)", 'count');
/plugin/struct/types/
H A DPage.php130 * @param string $colname
133 public function select(QueryBuilder $QB, $tablealias, $colname, $alias) argument
136 parent::select($QB, $tablealias, $colname, $alias);
149 * @param string $colname
152 public function sort(QueryBuilder $QB, $tablealias, $colname, $order) argument
155 parent::sort($QB, $tablealias, $colname, $order);
162 $QB->addOrderBy("$tablealias.$colname $order");
201 * @param string $colname
206 public function filter(QueryBuilderWhere $add, $tablealias, $colname, $comp, $value, $op) argument
209 parent::filter($add, $tablealias, $colname, $comp, $value, $op);
[all …]
H A DUser.php104 * @param string $colname
107 public function select(QueryBuilder $QB, $tablealias, $colname, $alias) argument
116 parent::select($QB, $tablealias, $colname, $alias);
124 * @param string $colname
127 public function sort(QueryBuilder $QB, $tablealias, $colname, $order) argument
136 $QB->addOrderBy("$tablealias.$colname $order");
144 * @param string $colname
149 public function filter(QueryBuilderWhere $add, $tablealias, $colname, $comp, $value, $op) argument
163 parent::filter($add, $tablealias, $colname, $comp, $value, $op);
H A DAutoSummary.php16 * @param string $colname
19 public function select(QueryBuilder $QB, $tablealias, $colname, $alias) argument
31 * @param string $colname
34 public function sort(QueryBuilder $QB, $tablealias, $colname, $order) argument
46 * @param string $colname
51 public function filter(QueryBuilderWhere $add, $tablealias, $colname, $comp, $value, $op) argument
H A DDateTime.php102 * @param string $colname
105 public function select(QueryBuilder $QB, $tablealias, $colname, $alias) argument
107 $col = "$tablealias.$colname";
122 * @param string $colname
127 public function filter(QueryBuilderWhere $add, $tablealias, $colname, $comp, $value, $op) argument
129 $col = "$tablealias.$colname";
155 * @param string $colname
158 public function sort(QueryBuilder $QB, $tablealias, $colname, $order) argument
160 $col = "$tablealias.$colname";
H A DLookup.php233 * @param string $colname
236 public function select(QueryBuilder $QB, $tablealias, $colname, $alias) argument
241 parent::select($QB, $tablealias, $colname, $alias);
251 … "$tablealias.$colname = STRUCT_JSON($rightalias.pid, CAST($rightalias.rid AS DECIMAL)) " .
256 $QB->addSelectStatement("STRUCT_JSON($tablealias.$colname, $sql)", $alias);
264 * @param string $colname
269 public function filter(QueryBuilderWhere $add, $tablealias, $colname, $comp, $value, $op) argument
274 parent::filter($add, $tablealias, $colname, $comp, $value, $op);
297 * @param string $colname
300 public function sort(QueryBuilder $QB, $tablealias, $colname, $order) argument
[all …]
H A DDecimal.php116 * @param string $colname
119 public function sort(QueryBuilder $QB, $tablealias, $colname, $order) argument
121 $QB->addOrderBy("CAST($tablealias.$colname AS DECIMAL) $order");
129 * @param string $colname
134 public function filter(QueryBuilderWhere $add, $tablealias, $colname, $comp, $value, $op) argument
137 $add->where('AND', "$tablealias.$colname != ''"); // make sure the field isn't empty
148 $add->where($op, "CAST($tablealias.$colname AS DECIMAL) $comp CAST($pl AS DECIMAL)");
H A DAbstractBaseType.php369 * @param string $colname The column name on above table to use in the SQL
374 public function filter(QueryBuilderWhere $add, $tablealias, $colname, $comp, $value, $op) argument
383 $add->where($op, "$tablealias.$colname $comp $pl");
404 * @param string $colname The column name on above table
407 public function select(QueryBuilder $QB, $tablealias, $colname, $alias) argument
409 $QB->addSelectColumn($tablealias, $colname, $alias);
420 * @param string $colname The column name on above table (always single column!)
426 public function sort(QueryBuilder $QB, $tablealias, $colname, $order) argument
428 $QB->addOrderBy("$tablealias.$colname $order");
H A DTraitFilterPrefix.php22 * @param string $colname
27 public function filter(QueryBuilderWhere $add, $tablealias, $colname, $comp, $value, $op) argument
30 $add->where('AND', "$tablealias.$colname != ''"); // make sure the field isn't empty
40 $column = "$tablealias.$colname";
H A DTag.php121 * @param string $colname
126 public function filter(QueryBuilderWhere $add, $tablealias, $colname, $comp, $value, $op) argument
135 …$add->where($op, "LOWER(REPLACE($tablealias.$colname, ' ', '')) $comp LOWER(REPLACE($pl, ' ', ''))…
/plugin/structjoin/types/
H A DJoin.php90 * @param string $colname
94 public function select(QueryBuilder $QB, $tablealias, $colname, $alias) { argument
97 AbstractBaseType::select($QB, $tablealias, $colname, $alias);
146 * @param string $colname
151 public function filter(QueryBuilderWhere $add, $tablealias, $colname, $comp, $value, $op) { argument
155 AbstractBaseType::filter($add, $tablealias, $colname, $comp, $value, $op);
174 * @param string $colname
178 public function sort(QueryBuilder $QB, $tablealias, $colname, $order) { argument
182 AbstractBaseType::sort($QB, $tablealias, $colname, $order);
/plugin/structstatus/
H A DStatus.php101 * @param string $colname
104 public function select(QueryBuilder $QB, $tablealias, $colname, $alias) { argument
112 AbstractBaseType::select($QB, $tablealias, $colname, $alias);
136 …"$tablealias.$colname = STRUCT_JSON($rightalias.pid, CAST($rightalias.rid AS DECIMAL)) AND $righta…
140 …$QB->addSelectStatement("STRUCT_JSON($tablealias.$colname, $field_status, $field_color, $field_ico…
152 $colname = $col->getLabel();
156 $search->addColumn($colname);
159 $search->addSort($colname);
/plugin/struct/helper/
H A Dfield.php145 $colname = $field->getColumn()->getFullQualifiedLabel();
152 $html .= "<label class=\"$lclass\" data-column=\"$colname\" for=\"$id\">";
164 * @param string $colname
168 protected function findColumn($colname) argument
170 list($table, $label) = explode('.', $colname, 2);
172 throw new StructException('Field \'%s\' not given in schema.field form', $colname);
/plugin/struct/action/
H A Dajax.php69 list($schema, $colname) = explode('.', $col, 2);
70 if (blank($schema) || blank($colname)) throw new StructException('Column format is wrong');
75 $column = $schema->findColumn($colname);
H A Dmigration.php162 $colname = "col$colno";
169 $s = sprintf($f, $name, $colname, $colname, $colname, $colname, $colname);
H A Dedit.php161 $colname = $field->getColumn()->getFullQualifiedLabel();
174 $html .= "<label $hide data-column=\"$colname\" for=\"$id\">";
/plugin/structat/meta/
H A DSearchConfigAt.php172 $colname = $col->getColName(false);
173 if($nc) $colname .= ' COLLATE NOCASE';
174 $col->getType()->sort($QB, 'data_' . $col->getTable(), $colname, $asc ? 'ASC' : 'DESC');
/plugin/data-au/
H A Dhelper.php375 'colname' => $col,
495 'colname' => $column['colname'],
/plugin/data/
H A Dhelper.php370 'colname' => $col,
490 'colname' => $column['colname'],
/plugin/structodt/
H A Dhelper.php223 $colname = $filter[0];
227 $search->addFilter($colname, $value, $comp, $op);
/plugin/data-au/_test/
H A Dhelper.test.php277 protected function createFilterArray($key, $value, $compare, $colname, $type) { argument
282 'colname' => $colname,
/plugin/data/_test/
H A Dhelper.test.php277 protected function createFilterArray($key, $value, $compare, $colname, $type) { argument
282 'colname' => $colname,

12