51 $this->argument_name = $index->attrs->var;
56 $this->
default = $index->attrs->default;
60 $this->sort_order = $index->attrs->order;
61 $sortList = array(
'asc' => 1,
'desc' => 1);
62 if(!isset($sortList[$this->sort_order]))
67 $arg->attrs->default =
'asc';
69 $this->sort_order =
'$' . $this->sort_order_argument->getArgumentName() .
'_argument';
73 $this->sort_order =
'"' . $this->sort_order .
'"';
79 return sprintf(
'new OrderByColumn(${\'%s_argument\'}, %s)', $this->argument->getArgumentName(),
$this->sort_order);
86 if($this->sort_order_argument)