15 public function __set($name, $val) {
16 $this->cfg->set($name, $val);
24 $this->cfg->lt = $end;
31 $this->cfg->mte = $st;
32 $this->cfg->lte = $end;
43 if (!is_null($this->cfg->mt))
44 $tmp[0] =
'('.$this->cfg->name.
'>"'.$this->cfg->mt.
'")';
45 if (!is_null($this->cfg->mte) && (is_null($this->cfg->mt) || $this->cfg->mte >= $this->cfg->mt))
46 $tmp[0] =
'('.$this->cfg->name.
'>="'.$this->cfg->mte.
'")';
48 if (!is_null($this->cfg->lt))
49 $tmp[1] =
'('.$this->cfg->name.
'<"'.$this->cfg->lt.
'")';
50 if (!is_null($this->cfg->lte) && (is_null($this->cfg->lt) || $this->cfg->lte <= $this->cfg->lt))
51 $tmp[1] =
'('.$this->cfg->name.
'<="'.$this->cfg->lte.
'")';
53 if (!is_null($this->cfg->eq))
54 $tmp[] =
'('.$this->cfg->name.
'="'.$this->cfg->eq.
'")';
56 if (!is_null($this->cfg->df))
57 $tmp[] =
'('.$this->cfg->name.
'!="'.$this->cfg->df.
'")';
59 if (!is_null($this->cfg->contains))
60 $tmp[] =
'('.$this->cfg->name.
' LIKE "%'.$this->cfg->contains.
'%")';
62 if (!is_null($this->cfg->start))
63 $tmp[] =
'('.$this->cfg->name.
' LIKE "'.$this->cfg->start.
'%")';
65 if (!is_null($this->cfg->end))
66 $tmp[] =
'('.$this->cfg->name.
' LIKE "%'.$this->cfg->end.
'")';
68 if (!is_null($this->cfg->raw))
69 $tmp[] =
'('.$this->cfg->raw.
')';
71 if (!empty($this->cfg->in)) {
72 if (is_array($this->cfg->in)) {
74 array_walk($in, create_function(
'&$v',
'$v = \'"\'.$v.\'"\';'));
75 $tmp[] =
'('.$this->cfg->name.
' IN ('.implode(
',', $in).
'))';
77 $tmp[] =
'('.$this->cfg->name.
' IN ('.$this->cfg->in.
'))';
80 if (!empty($this->cfg->freeClause))
81 $tmp = array_merge($tmp, $this->cfg->freeClause);
83 return implode(
' '.$this->cfg->op.
' ', $tmp);