29 $this->columns = array();
36 if(!is_array($xml_columns))
38 $xml_columns = array($xml_columns);
41 foreach($xml_columns as $column)
43 if($column->name ===
'query')
45 $this->columns[] =
new QueryTag($column, TRUE);
47 else if(!isset($column->attrs->var) && !isset($column->attrs->default))
65 $output_columns =
'array(' . PHP_EOL;
66 foreach($this->columns as $column)
68 $output_columns .= $column->getExpressionString() . PHP_EOL .
',';
70 $output_columns = substr($output_columns, 0, -1);
71 $output_columns .=
')';
72 return $output_columns;
83 foreach($this->columns as $column)
85 $arguments[] = $column->getArgument();
__construct($xml_columns)