Criteria/SimpleParser.php
public function parse(array $criteria, array $orderBy = array(), $limit = null, $offset = null)
    {
        $statement = new Expr\Statement();

        if(!empty($criteria)) {
            $statement->setClause('condition', $this->parseCriteria($criteria));
        }

        if(!empty($orderBy)) 
            $statement->setClause('order', $this->parseOrderBy($orderBy));
        if($limit)
            $statement->setClause('limit', $this->parseLimit($limit));
        if($offset)
            $statement->setClause('offset', $this->parseOffset($offset));

        return new Query($statement, $this->persister);
    }
public function parse(array $criteria, array $orderBy = array(), $limit = null, $offset = null)
    {
        $statement = new Expr\Statement();

        if(!empty($criteria)) {
            $statement->setClause('condition', $this->parseCriteria($criteria));
        }

        if(!empty($orderBy)) 
            $statement->setClause('order', $this->parseOrderBy($orderBy));
        if($limit)
            $statement->setClause('limit', $this->parseLimit($limit));
        if($offset)
            $statement->setClause('offset', $this->parseOffset($offset));

        return new Query($statement, $this->persister);
    }
public function parse ( array $ criteria , array $ orderBy = array ( ) , $ limit = null , $ offset = null ) { $ statement = new Expr \ Statement ( ) ; if ( ! empty ( $ criteria ) ) { $ statement -> setClause ( 'condition' , $ this -> parseCriteria ( $ criteria ) ) ; } if ( ! empty ( $ orderBy ) ) $ statement -> setClause ( 'order' , $ this -> parseOrderBy ( $ orderBy ) ) ; if ( $ limit ) $ statement -> setClause ( 'limit' , $ this -> parseLimit ( $ limit ) ) ; if ( $ offset ) $ statement -> setClause ( 'offset' , $ this -> parseOffset ( $ offset ) ) ; return new Query ( $ statement , $ this -> persister ) ; }
parse
Parse fields criteria and order
@param array $criteria
@param array $order
@access public
@return void
parse Parse fields criteria and order