本文整理匯總了PHP中I2CE::initializeDSN方法的典型用法代碼示例。如果您正苦於以下問題:PHP I2CE::initializeDSN方法的具體用法?PHP I2CE::initializeDSN怎麽用?PHP I2CE::initializeDSN使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類I2CE
的用法示例。
在下文中一共展示了I2CE::initializeDSN方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: dirname
* @subpackage DemoTrain
* @access public
* @author Carl Leitner <litlfred@ibiblio.org>
* @copyright Copyright © 2007, 2008 IntraHealth International, Inc.
* @since Demo-v2.a
* @version Demo-v2.a
*/
$i2ce_site_user_access_init = null;
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'config.values.php';
$local_config = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'local' . DIRECTORY_SEPARATOR . 'config.values.php';
if (file_exists($local_config)) {
require_once $local_config;
}
if (!isset($i2ce_site_i2ce_path) || !is_dir($i2ce_site_i2ce_path)) {
echo "Please set the \$i2ce_site_i2ce_path in {$local_config}";
exit(55);
}
require_once $i2ce_site_i2ce_path . DIRECTORY_SEPARATOR . 'I2CE_config.inc.php';
@I2CE::initializeDSN($i2ce_site_dsn, $i2ce_site_user_access_init, $i2ce_site_module_config);
unset($i2ce_site_user_access_init);
unset($i2ce_site_dsn);
unset($i2ce_site_i2ce_path);
unset($i2ce_site_module_config);
@($page = new I2CE_Wrangler());
@$page->wrangle();
# Local Variables:
# mode: php
# c-default-style: "bsd"
# indent-tabs-mode: nil
# c-basic-offset: 4
# End: