Location: PHPKode > projects > FreeORM > FreeORM/GlobalConstant.php
<?php

/**
 * The global constant definitions.
 * 
 * @package		com.freeorm
 * @author		Yide Zou
 * @link		http://www.freeorm.com
 * @copyright	Copyright (c) 2010 Yide Zou <hide@address.com>. 
 * 				All Rights Reserved.
 * @license		This software is released under the terms of the GNU Lesser General Public License
 * 				A copy of which is available from http://www.gnu.org/copyleft/lesser.html
 */

define('ORM_MODE_MASK', 1 << 5);
// use xml file for orm defination
define('ORM_MODE_XML', ORM_MODE_MASK | 1);
// use annotation for orm defination
define('ORM_MODE_ANNOTATION', ORM_MODE_MASK | 2);



define('LOG_LEVEL_MASK', 1 << 6);
// output nothing
define('LOG_LVL_NONE', LOG_LEVEL_MASK | 1);
// output error message and error sql
define('LOG_LVL_ERROR', LOG_LEVEL_MASK | 2);
// output sql
define('LOG_LVL_DEBUG', LOG_LEVEL_MASK | 3);
define('LOG_LVL_ALL', LOG_LEVEL_MASK | 4);



define('DB_TYPE_MASK', 1 << 7);
define('DB_TYPE_MYSQL', DB_TYPE_MASK | 1);
Return current item: FreeORM