Lines Matching +full:comparator +full:> +full:= +(+path:plugin +path:struct) -(+path:plugin +path:struct +path:lang)
13 public static $PARAM_FILTER = 'flt';
15 public static $PARAM_OFFSET = 'ofs';
17 public static $PARAM_SORT = 'srt';
25 protected $offset = 0;
27 protected $filters = [];
37 $this->searchConfig = $searchConfig;
39 $confHlp = plugin_load('helper', 'struct_config');
42 [$colname, $sort] = $confHlp->parseSort($INPUT->str(self::$PARAM_SORT));
47 foreach ($INPUT->arr(self::$PARAM_FILTER) as $colcomp => $filter) {
48 [$colname, $comp, $value, ] = $confHlp->parseFilterLine('AND', $colcomp . $filter);
67 $column = $this->searchConfig->findColumn($column);
80 public function setSort($column, $asc = true)
82 $column = $this->resolveColumn($column);
84 $this->sort = [$column, $asc];
92 $this->sort = null;
102 $this->offset = $offset;
110 $this->offset = 0;
120 * @param string $comp the comparator
125 $column = $this->resolveColumn($column);
128 if (trim($value) === '') {
131 $this->filters[$column] = [$comp, $value];
142 $column = $this->resolveColumn($column);
152 $this->filters = [];
174 $params = [];
176 $params[self::$PARAM_OFFSET] = $this->offset;
180 [$column, $asc] = $this->sort;
181 if (!$asc) $column = "^$column";
182 $params[self::$PARAM_SORT] = $column;
186 foreach ($this->filters as $column => $filter) {
187 [$comp, $value] = $filter;
188 $key = self::$PARAM_FILTER . '[' . $column . $comp . ']';
189 $params[$key] = $value;
210 foreach ($this->filters as $colName => $filter) {
211 [$comp, $value] = $filter;