36 if($column ==
"*" || $column->attrs->name ==
'*')
38 parent::__construct(NULL);
43 parent::__construct($column->attrs->name);
45 $this->name = $dbParser->parseExpression($this->name);
47 $this->alias = $column->attrs->alias;
48 $this->click_count = $column->attrs->click_count;
66 if($this->name ==
'*')
68 return "new StarExpression()";
70 if($this->click_count)
72 return sprintf(
'new ClickCountExpression(\'%s\', %s, $args->%s)', $this->name, $this->alias ?
'\'' . $this->alias .
'\'' :
"''", $this->click_count);
74 if(strpos($this->name,
'$') === 0)
76 return sprintf(
'new SelectExpression($args->%s)', substr($this->name, 1));
79 return sprintf(
'new SelectExpression(\'%s\'%s)', $this->name, $this->alias ?
', \'' . $dbParser->escape($this->alias) .
'\'' :
'');