本文整理汇总了PHP中getSingleDBInstance函数的典型用法代码示例。如果您正苦于以下问题:PHP getSingleDBInstance函数的具体用法?PHP getSingleDBInstance怎么用?PHP getSingleDBInstance使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getSingleDBInstance函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Users
/** constructor function for the main user class
instantiates the Logger class and PearDatabase Class
*
*/
function Users()
{
$this->log = LoggerManager::getLogger('user');
$this->log->debug("Entering Users() method ...");
$this->db =& getSingleDBInstance();
$this->log->debug("Exiting Users() method ...");
}
示例2: Relsettings
function Relsettings()
{
$this->log = LoggerManager::getLogger('relsettings');
$this->log->debug("Entering Relsettings() method ...");
$this->db =& getSingleDBInstance();
$this->column_fields = getColumnFields('Relsettings');
$this->log->debug("Exiting Relsettings method ...");
}
示例3: Maillists
function Maillists()
{
$this->log = LoggerManager::getLogger('maillists');
$this->log->debug("Entering Maillists() method ...");
$this->db =& getSingleDBInstance();
$this->column_fields = getColumnFields('Maillists');
$this->log->debug("Exiting Maillists method ...");
}
示例4: Qunfatmps
function Qunfatmps()
{
$this->log = LoggerManager::getLogger('qunfatmps');
$this->log->debug("Entering Qunfatmps() method ...");
$this->db =& getSingleDBInstance();
$this->column_fields = getColumnFields('Qunfatmps');
$this->log->debug("Exiting Qunfatmps method ...");
}
示例5: Products
/** Constructor which will set the column_fields in this object
*/
function Products()
{
$this->log = LoggerManager::getLogger('product');
$this->log->debug("Entering Products() method ...");
$this->db =& getSingleDBInstance();
$this->column_fields = getColumnFields('Products');
$this->log->debug("Exiting Product method ...");
}
示例6: Notes
function Notes()
{
$this->log = LoggerManager::getLogger('notes');
$this->log->debug("Entering Notes() method ...");
$this->db =& getSingleDBInstance();
$this->column_fields = getColumnFields('Notes');
$this->log->debug("Exiting Note method ...");
}
示例7: ClearColumnFields
function ClearColumnFields()
{
$this->log = LoggerManager::getLogger('import_salesorder');
$this->db =& getSingleDBInstance();
$colf = getColumnFields("SalesOrder");
foreach ($colf as $key => $value) {
$this->column_fields[$key] = '';
}
}
示例8: ImportLead
/** Constructor which will set the importable_fields as $this->importable_fields[$key]=1 in this object where key is the fieldname in the field table
*/
function ImportLead()
{
$this->log = LoggerManager::getLogger('import_lead');
$this->db =& getSingleDBInstance();
$this->db->println("IMP ImportLead");
$colf = getColumnFields("Leads");
foreach ($colf as $key => $value) {
$this->importable_fields[$key] = 1;
}
$this->db->println($this->importable_fields);
}
示例9: DeleteMemdays
function DeleteMemdays()
{
$this->log = LoggerManager::getLogger('DeleteMemdays');
$this->db =& getSingleDBInstance();
}
示例10: QunfatmpsDataPopulator
function QunfatmpsDataPopulator()
{
$this->log = LoggerManager::getLogger('QunfatmpsDataPopulator');
$this->db =& getSingleDBInstance();
}
示例11: ImportNote
/** Constructor which will set the importable_fields as $this->importable_fields[$key]=1 in this object where key is the fieldname in the field table
*/
function ImportNote()
{
$this->log = LoggerManager::getLogger('import_notes');
$this->db =& getSingleDBInstance();
$colf = getColumnFields("Notes");
foreach ($colf as $key => $value) {
$this->importable_fields[$key] = 1;
}
}
示例12: stripslashes_deep
$_POST = stripslashes_deep($_POST);
}
$_COOKIE = stripslashes_deep($_COOKIE);
$_REQUEST = stripslashes_deep($_REQUEST);
}
header('Content-Type: text/html; charset=UTF-8');
global $entityDel;
global $display;
global $category;
global $currentModule;
require_once $root_directory . 'include/utils/utils.php';
require_once $root_directory . 'include/database/PearDatabase.php';
require_once $root_directory . 'include/logging.php';
require_once $root_directory . 'modules/Users/Users.php';
$log =& LoggerManager::getLogger('index');
$adb =& getSingleDBInstance();
$skipActions = array("Save", "Delete", "Popup", "Ajax", "ChangePassword", "CreatePDF");
$theme = "softed";
$current_language = "zh_cn";
if (isset($_REQUEST['PHPSESSID'])) {
session_id($_REQUEST['PHPSESSID']);
//Setting the same session id to Forums as in CRM
$sid = $_REQUEST['PHPSESSID'];
}
// Create or reestablish the current session
session_start();
/**
* 递归方式的对变量中的特殊字符去除转义
*
* @access public
* @param mix $value
示例13: OnlineAccsalesreportsDataPopulator
function OnlineAccsalesreportsDataPopulator()
{
$this->log = LoggerManager::getLogger('OnlineAccsalesreportsDataPopulator');
$this->db =& getSingleDBInstance();
}
示例14: AddressreportsDataPopulator
function AddressreportsDataPopulator()
{
$this->log = LoggerManager::getLogger('AddressreportsDataPopulator');
$this->db =& getSingleDBInstance();
}
示例15: Accounts
function Accounts()
{
$this->log = LoggerManager::getLogger('account');
$this->db =& getSingleDBInstance();
$this->column_fields = getColumnFields('Accounts');
}