Actions

Source Code of This Project

/lib/model/DBuilder/Query.php

<?php
/*
 * This file is part of the pwp package.
 * (c) 2009-2010 Victor Rad' <victor.v.rad[at]gmail.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
*/

/**
 * Doctrine query holder
 * The classes of DBuilder use this class
 * for creation and storage of Doctrine_Query instance
 *
 * @package    pwp
 * @subpackage DBuilder
 * @author     Victor Rad'
 */
class DBuilder_Query
{
    private
        // instance of Doctrine_Query
        $query = null;

    public function __construct()
    {
        // create Doctrine_Query instance
        if(is_null($this->query)){
            $this->query = Doctrine_Query::create();
        }
    }

    public function getQuery()
    {
        return $this->query;
    }
}