PHP Classes

File: LQueryBU/config.php

Recommend this page to a friend!
  Classes of Xavier Pérez   LQueryBU   LQueryBU/config.php   Download  
File: LQueryBU/config.php
Role: Configuration script
Content type: text/plain
Description: Main config file
Class: LQueryBU
SQL and PHP business units
Author: By
Last change: improvements
Date: 14 years ago
Size: 2,532 bytes
 

Contents

Class file image Download
<?php

/**
* LQueryBU CONFIG FILE
*
 */


/*
 * DEFINITIONS THAT CAN BE OVERRIDDEN FROM ANY MODEL CALLING THIS CLASS
 *
 * To override, define previously with your own settings
 */

/*
 * PATH for Query Files, preferable out of web access
 */
 
$LQBU_pathinfo = pathinfo(__FILE__);
if (!
defined("LQUERYBU_QUERY_FILES_PATH"))
   
define("LQUERYBU_QUERY_FILES_PATH",$LQBU_pathinfo['dirname'].DIRECTORY_SEPARATOR."query_units".DIRECTORY_SEPARATOR."examples");

/*
 * PATH for Template Files, preferable out of web access
 */
if (!defined("LQUERYBU_TEMPLATES_FILES_PATH"))
   
define("LQUERYBU_TEMPLATES_FILES_PATH",$LQBU_pathinfo['dirname'].DIRECTORY_SEPARATOR."templates");

/*
 * PATH for Images Files, preferable out of web access
 */
if (!defined("LQUERYBU_IMAGES_PATH"))
   
define("LQUERYBU_IMAGES_PATH","/LQueryBU/images");

/*
 * PATH for CSS Files, preferable out of web access
 */
if (!defined("LQUERYBU_CSS_FILES_PATH"))
   
define("LQUERYBU_CSS_FILES_PATH","/LQueryBU/css");

/*
 * PATH for JS Files, preferable out of web access
 */
if (!defined("LQUERYBU_JS_FILES_PATH"))
   
define("LQUERYBU_JS_FILES_PATH","/LQueryBU/js");

/*
 * Enable debug of query modules, FALSE disable even in the case of enabled in the class or direct call
 * Properties: TRUE=enable saving queries in queue, FALSE=not debug, DUMP=enables dumpping immediately
 * If TRUE, you can retrieve information with dumpDebugQuery() function.
 */
if (!defined("LQUERYBU_SHOW_SQL_COMMANDS"))
   
define("LQUERYBU_SHOW_SQL_COMMANDS",TRUE);

/*
 * Return results in the form of array of objects (default option)
 */
if (!defined("LQUERYBU_RETURN_ARRAY"))
   
define("LQUERYBU_RETURN_ARRAY",FALSE);

/*
 * Return results in the form of objects (usefull for only one record returned)
 */
if (!defined("LQUERYBU_RETURN_OBJECT"))
   
define("LQUERYBU_RETURN_OBJECT",FALSE);

/*
 * If you use country or lang codes for a subset of data, set it here, will be replaced automatically
 * Remember to put [LANGCODE] in your query, will be replaced by this value
 */
if (!defined("LQUERYBU_LANGCODE"))
   
define("LQUERYBU_LANGCODE","");

/*
 * If you define this as FALSE, nobody can view debug
 */
if (!defined("LQUERYBU_SHOW_SQL_COMMANDS"))
   
define("LQUERYBU_SHOW_SQL_COMMANDS",FALSE);

/*
 * Some profilers, as Kohana, need to divide the query time execution, otherwise, 1
 */
if (!defined("LQUERYBU_PROFILER_DIVIDER_EXTIME"))
   
define("LQUERYBU_PROFILER_DIVIDER_EXTIME",1);