Location: PHPKode > projects > Spiral > ametaireau-spiral-272a2b1/framework/persistence/classes/query/CriteriaFactory.php
<?php

namespace spiral\framework\persistence\query;

/**
 * Criteria factory
 * 
 * Create criteria from given parameters
 * 
 * @author		Frédéric Sureau <hide@address.com>
 * @copyright	2009 Spiral-project.org <http://www.spiral-project.org>
 * @license		GNU General Public License <http://www.gnu.org/licenses/gpl.html>
 */
interface CriteriaFactory
{
	/**
	 * Create criteria from other criteria with the given operator
	 * 
	 * @param	int			$operator	Logical operator to use
	 * @param	array		$criteria	Criteria to group
	 * 
	 * @return	Criteria	Criteria of other criteria created
	 */
	public function createCriteria($operator, array $criteria);
}
Return current item: Spiral