XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
SortQueryArgument.class.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) NAVER <http://www.navercorp.com> */
3 
11 {
12 
17  function toString()
18  {
19  $arg = sprintf("\n" . '${\'%s_argument\'} = new SortArgument(\'%s\', %s);' . "\n"
20  , $this->argument_name
21  , $this->argument_name
22  , '$args->' . $this->variable_name);
23  $arg .= $this->argument_validator->toString();
24 
25  $arg .= sprintf('if(!${\'%s_argument\'}->isValid()) return ${\'%s_argument\'}->getErrorMessage();' . "\n"
26  , $this->argument_name
27  , $this->argument_name
28  );
29  return $arg;
30  }
31 
32 }
33 /* End of file DefaultValue.class.php */
34 /* Location: ./classes/xml/xmlquery/queryargument/DefaultValue.class.php */