mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-28 07:39:55 +09:00
Condition pipe defaults to AND
XML 쿼리 작성시 pipe="and"를 일일이 추가하지 않아도 기본값이 AND가 되도록 함
This commit is contained in:
parent
83362034cd
commit
efa1b603c4
4 changed files with 16 additions and 9 deletions
|
|
@ -29,7 +29,7 @@ class ConditionGroup
|
|||
* @param string $pipe
|
||||
* @return void
|
||||
*/
|
||||
function __construct($conditions, $pipe = "")
|
||||
function __construct($conditions, $pipe = 'and')
|
||||
{
|
||||
$this->conditions = array();
|
||||
foreach($conditions as $condition)
|
||||
|
|
@ -89,7 +89,7 @@ class ConditionGroup
|
|||
|
||||
if($this->pipe !== "" && trim($group) !== '')
|
||||
{
|
||||
$group = $this->pipe . ' (' . $group . ')';
|
||||
$group = strtoupper($this->pipe) . ' (' . $group . ')';
|
||||
}
|
||||
|
||||
$this->_group = $group;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue