<?php
	/**
	* Query statements for "comm_type" table
	* @author Edgar Antonio Luna <eald@co.com.mx>
	* @copyright Copyright (C) 2003,2004 Free Software Foundation, Inc. http://www.fsf.org/
	* @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License
	* @package phpgwapi
	* @subpackage contacts
	* @version $Id: class.contact_comm_type.inc.php,v 1.1.2.7 2004/02/10 13:51:17 ceb Exp $
	*/

	/**
	* Use SQL criteria
	*/
	include_once(PHPGW_API_INC . '/class.sql_criteria.inc.php');
	/**
	* Use SQL entity
	*/
	include_once(PHPGW_API_INC . '/class.sql_entity.inc.php');

	/**
	* Query statements for "comm_type" table
	*
	* @package phpgwapi
	* @subpackage contacts
	*/
	class contact_comm_type extends sql_entity
	{
		var $map = array('comm_type_id'=> array('select'	=> '',
							'criteria' 	=> '',
							'insert'   	=> '',
							'update'	=> '',
							'delete'	=> '',
							'sort'		=> '',
							'field'		=> '',
							'type'		=> 'integer'),
				 'comm_type_description'=> array('select'	=> '',
							'criteria' 	=> '',
							'insert'   	=> '',
							'update'	=> '',
							'delete'	=> '',
							'sort'		=> '',
							'field'		=> 'type',
							'type'		=> 'string'),
				 'comm_active'	=> array('select'	=> '',
							 'criteria' 	=> '',
							 'insert'   	=> '',
							 'update'	=> '',
							 'delete'	=> '',
							 'sort'		=> '',
							 'field'	=> 'active',
							 'type'		=> 'string'),
				 'comm_class'	=> array('select'	=> '',
							 'criteria' 	=> '',
							 'insert'   	=> '',
							 'update'	=> '',
							 'delete'	=> '',
							 'sort'		=> '',
							 'field'	=> 'class',
							 'type'		=> 'string'));


		function contact_comm_type ($ali = '', $field = '', $criteria = '')
		{
			$this->_constructor('phpgw_contact_comm_type', 'contact_comm_type');
			if($field)
			{
				$this->add_select($field);
			}
			if($criteria)
			{
				$this->add_criteria($criteria);
			}

			$this->set_ilinks('comm_type_id', 'phpgwapi.contact_comm_descr','comm_type');
		}
	}
?>
