mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 04:24:14 +09:00
@kijin 님 의견에 따라 수정
This commit is contained in:
parent
56921fa9be
commit
d23c5f7271
1 changed files with 2 additions and 4 deletions
|
|
@ -237,9 +237,7 @@ class VariableBase
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'search':
|
case 'search':
|
||||||
$parsed_keywords = $this->_parseSearchKeywords($value);
|
list($where, $params) = $this->_parseSearchKeywords($value);
|
||||||
$where = $parsed_keywords[0];
|
|
||||||
$params = array_merge($params, $parsed_keywords[1]);
|
|
||||||
break;
|
break;
|
||||||
case 'plus':
|
case 'plus':
|
||||||
$where = sprintf('%s = %s + %s', $column, $column, $is_expression ? $value : '?');
|
$where = sprintf('%s = %s + %s', $column, $column, $is_expression ? $value : '?');
|
||||||
|
|
@ -436,7 +434,7 @@ class VariableBase
|
||||||
* @param string $value
|
* @param string $value
|
||||||
* @return object
|
* @return object
|
||||||
*/
|
*/
|
||||||
private function _parseSearchKeywords($value)
|
protected function _parseSearchKeywords($value)
|
||||||
{
|
{
|
||||||
// Initialze the return values.
|
// Initialze the return values.
|
||||||
$where = '';
|
$where = '';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue