Lines Matching refs:colname
104 * @param string $colname may contain an alias
106 public function addColumn($colname) argument
108 if ($this->processWildcard($colname)) return; // wildcard?
109 if ($colname[0] == '-') { // remove column from previous wildcard lookup
110 $colname = substr($colname, 1);
112 if ($col->getLabel() === $colname) unset($this->columns[$key]);
117 $col = $this->findColumn($colname);
128 * @param string $colname may contain an alias
132 public function addSort($colname, $asc = true, $nc = true) argument
134 $col = $this->findColumn($colname);
163 * @param string $colname may contain an alias
168 public function addFilter($colname, $value, $comp, $op = 'OR') argument
170 $filter = $this->createFilter($colname, $value, $comp, $op);
177 * @param string $colname may contain an alias
182 public function addDynamicFilter($colname, $value, $comp, $op = 'OR') argument
184 $filter = $this->createFilter($colname, $value, $comp, $op);
191 * @param string $colname may contain an alias
197 protected function createFilter($colname, $value, $comp, $op = 'OR') argument
213 $col = $this->findColumn($colname);
538 * @param string $colname
541 protected function processWildcard($colname) argument
543 [$colname, $table] = $this->resolveColumn($colname);
544 if ($colname !== '*') return false;
566 protected function resolveColumn($colname) argument
571 [$table, $colname] = sexplode('.', $colname, 2, '');
572 if (!$colname) {
573 $colname = $table;
580 if (!$colname) throw new StructException('nocolname');
582 return [$colname, $table];
588 * @param string $colname may contain an alias
591 public function findColumn($colname, $strict = false) argument
597 if ($colname == '%pageid%') {
600 if ($colname == '%title%') {
603 if ($colname == '%lastupdate%') {
606 if ($colname == '%lasteditor%') {
609 if ($colname == '%lastsummary%') {
612 if ($colname == '%rowid%') {
615 if ($colname == '%published%') {
619 [$colname, $table] = $this->resolveColumn($colname);
640 $col = $schema->findColumn($colname);