27 $this->condition_groups = array();
33 $xml_condition_list = array();
34 if($xml_conditions->condition)
36 $xml_condition_list = $xml_conditions->condition;
39 if($xml_conditions->query)
41 if(!is_array($xml_condition_list))
43 $xml_condition_list = array($xml_condition_list);
45 if(!is_array($xml_conditions->query))
47 $xml_conditions->query = array($xml_conditions->query);
49 $xml_condition_list = array_merge($xml_condition_list, $xml_conditions->query);
51 if($xml_condition_list)
56 $xml_groups = $xml_conditions->group;
59 if(!is_array($xml_groups))
61 $xml_groups = array($xml_groups);
63 foreach($xml_groups as $group)
65 $this->condition_groups[] =
new ConditionGroupTag($group->condition, $group->attrs->pipe);
76 $output_conditions =
'array(' . PHP_EOL;
77 foreach($this->condition_groups as $condition)
79 $output_conditions .= $condition->getConditionGroupString() . PHP_EOL .
',';
81 $output_conditions = substr($output_conditions, 0, -1);
82 $output_conditions .=
')';
83 return $output_conditions;
89 foreach($this->condition_groups as $condition)
91 $arguments = array_merge($arguments, $condition->getArguments());
__construct($xml_conditions)