Lines Matching refs:colname

104      * @param string $colname may contain an alias
106 public function addColumn($colname)
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)
134 $col = $this->findColumn($colname);
163 * @param string $colname may contain an alias
168 public function addFilter($colname, $value, $comp, $op = 'OR')
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')
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')
213 $col = $this->findColumn($colname);
542 * @param string $colname
545 protected function processWildcard($colname)
547 [$colname, $table] = $this->resolveColumn($colname);
548 if ($colname !== '*') return false;
567 * @param $colname
568 * @return array (colname, table)
570 protected function resolveColumn($colname)
575 [$table, $colname] = sexplode('.', $colname, 2, '');
576 if (!$colname) {
577 $colname = $table;
584 if (!$colname) throw new StructException('nocolname');
586 return [$colname, $table];
592 * @param string $colname may contain an alias
595 public function findColumn($colname, $strict = false)
601 if ($colname == '%pageid%') {
604 if ($colname == '%title%') {
607 if ($colname == '%lastupdate%') {
610 if ($colname == '%lasteditor%') {
613 if ($colname == '%lastsummary%') {
616 if ($colname == '%rowid%') {
619 if ($colname == '%published%') {
623 [$colname, $table] = $this->resolveColumn($colname);
644 $col = $schema->findColumn($colname);