本文整理匯總了PHP中CoreLocal::refresh方法的典型用法代碼示例。如果您正苦於以下問題:PHP CoreLocal::refresh方法的具體用法?PHP CoreLocal::refresh怎麽用?PHP CoreLocal::refresh使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CoreLocal
的用法示例。
在下文中一共展示了CoreLocal::refresh方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: hookAddColumnTenderModule
public function hookAddColumnTenderModule()
{
CoreLocal::refresh();
CoreState::loadParams();
$current_map = CoreLocal::get('TenderMap');
$update = $this->connection->prepare('
UPDATE tenders
SET TenderModule=?
WHERE TenderCode=?
');
foreach ($current_map as $code => $module) {
$this->connection->execute($update, array($module, $code));
}
}
示例2: realpath
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*********************************************************************************/
/**
@file
@brief This file specifies the LocalStorage implemenation
Include this file to get a LocalStorage instance
in the variable $CORE_LOCAL.
*/
$elog = realpath(dirname(__FILE__) . '/../../log/') . '/php-errors.log';
ini_set('error_log', $elog);
ini_set('display_errors', false);
$LOCAL_STORAGE_MECHANISM = 'SessionStorage';
if (!class_exists($LOCAL_STORAGE_MECHANISM)) {
include realpath(dirname(__FILE__) . '/' . $LOCAL_STORAGE_MECHANISM . ".php");
}
if (!class_exists('CoreLocal')) {
include dirname(__FILE__) . '/CoreLocal.php';
}
if (!class_exists('WrappedStorage')) {
include dirname(__FILE__) . '/WrappedStorage.php';
}
CoreLocal::setHandler($LOCAL_STORAGE_MECHANISM);
$CORE_LOCAL = new WrappedStorage();
global $CORE_LOCAL;
// this includes ini.php
CoreLocal::refresh();
if (!defined('CONF_LOADED')) {
define('CONF_LOADED', true);
}