. */ Doctrine::autoload('Doctrine_Query_Part'); /** * Doctrine_Query_Orderby * * @package Doctrine * @subpackage Query * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link www.phpdoctrine.com * @since 1.0 * @version $Revision$ * @author Konsta Vesterinen */ class Doctrine_Query_Orderby extends Doctrine_Query_Part { /** * DQL ORDER BY PARSER * parses the order by part of the query string * * @param string $str * @return void */ public function parse($str, $append = false) { $ret = array(); foreach (explode(',', trim($str)) as $r) { $r = $this->query->parseClause($r); $ret[] = $r; } return $ret; } }