Lines Matching refs:col
119 case 'col':
121 foreach ($cols as $col) {
122 $col = trim($col);
123 if (!$col) continue;
124 $column = $this->dthlp->column($col);
139 foreach ($cols as $col) {
140 $col = trim(strtolower($col));
141 if ($col[0] == 'c') {
142 $col = 'center';
143 } elseif ($col[0] == 'r') {
144 $col = 'right';
146 $col = 'left';
148 $data['align'][] = $col;
153 foreach ($cols as $col) {
154 $col = trim($col);
155 $data['widths'][] = $col;
288 foreach ($clist as $index => $col) {
293 $class .= 'align ' . hsc(sectionID($col, $class_names_cache));
590 foreach ($data['cols'] as &$col) {
591 $key = $col['key'];
608 $type = $col['type'];
624 unset($col);
628 $col = $data['sort'][0];
630 if ($col == '%pageid%') {
632 } elseif ($col == '%class%') {
634 } elseif ($col == '%title%') {
636 } elseif ($col == '%lastmod%') {
640 if (!$tables[$col]) {
641 $tables[$col] = 'T' . (++$cnt);
642 $from .= ' LEFT JOIN data AS ' . $tables[$col] . ' ON ' . $tables[$col] . '.pid = W1.pid';
643 $from .= ' AND ' . $tables[$col] . ".key = " . $sqlite->getPdo()->quote($col);
646 $order = 'ORDER BY ' . $tables[$col] . '.value ' . $data['sort'][1];
659 $col = $filter['key'];
662 if ($col == '%pageid%') {
665 } elseif ($col == '%class%') {
668 } elseif ($col == '%title%') {
671 } elseif ($col == '%lastmod%') {
680 $from2 .= ' AND ' . $table . ".key = " . $sqlite->getPdo()->quote($col);