64 $this->column_name = $dbParser->parseColumnName(
$column_name);
72 $str_pos = strpos($this->value,
'(');
73 if($str_pos ===
false)
102 if(!isset($this->value))
109 if(strpos($this->value,
',') !== FALSE && strpos($this->value,
'(') === FALSE)
111 return sprintf(
'array(%s)', $this->value);
114 $str_pos = strpos($this->value,
'(');
116 if($str_pos === FALSE)
118 $this->_is_string = TRUE;
119 return '\'' . $this->value .
'\'';
123 $func_name = substr($this->value, 0, $str_pos);
124 $args = substr($this->value, $str_pos + 1, -1);
129 $val =
'$_SERVER[\'REMOTE_ADDR\']';
130 $this->_is_string_from_function = TRUE;
133 $val =
'$_SERVER[\'REQUEST_TIME\']';
136 $val =
'date("YmdHis")';
137 $this->_is_string_from_function = TRUE;
140 $this->is_sequence = TRUE;
145 $this->is_operation = TRUE;
146 $this->operation =
'+';
147 $val = sprintf(
'%d',
$args);
151 $this->is_operation = TRUE;
152 $this->operation =
'-';
153 $val = sprintf(
'%d',
$args);
157 $this->is_operation = TRUE;
158 $this->operation =
'*';
159 $val = sprintf(
'%d',
$args);
162 $val =
'\'' . $this->value .
'\'';
__construct($column_name, $value)
$_is_string_from_function