本文整理匯總了PHP中eZINI::checkFileMtime方法的典型用法代碼示例。如果您正苦於以下問題:PHP eZINI::checkFileMtime方法的具體用法?PHP eZINI::checkFileMtime怎麽用?PHP eZINI::checkFileMtime使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類eZINI
的用法示例。
在下文中一共展示了eZINI::checkFileMtime方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: eZINI
function eZINI($fileName = 'site.ini', $rootDir = '', $useTextCodec = null, $useCache = null, $useLocalOverrides = null, $directAccess = false, $addArrayDefinition = false)
{
$this->Charset = 'utf8';
if ($fileName == '') {
$fileName = 'site.ini';
}
if ($rootDir !== false && $rootDir == '') {
$rootDir = 'settings';
}
if ($useCache === null) {
$useCache = eZINI::isCacheEnabled();
}
if (eZINI::isNoCacheAdviced()) {
$useCache = false;
}
if ($useTextCodec === null) {
$useTextCodec = eZINI::isTextCodecEnabled();
}
$this->UseTextCodec = $useTextCodec;
$this->Codec = null;
$this->FileName = $fileName;
$this->RootDir = $rootDir;
$this->UseCache = $useCache;
$this->DirectAccess = $directAccess;
$this->UseLocalOverrides = $useLocalOverrides;
$this->AddArrayDefinition = $addArrayDefinition;
if (self::$checkFileMtime === null) {
if (defined('EZP_INI_FILEMTIME_CHECK')) {
self::$checkFileMtime = EZP_INI_FILEMTIME_CHECK;
} else {
self::$checkFileMtime = true;
}
}
if (self::$GlobalOverrideDirArray === null) {
self::$GlobalOverrideDirArray = self::defaultOverrideDirs();
}
if ($this->UseLocalOverrides == true) {
$this->LocalOverrideDirArray = self::$GlobalOverrideDirArray;
}
if (self::$filePermission === null) {
if (defined('EZP_INI_FILE_PERMISSION')) {
self::$filePermission = EZP_INI_FILE_PERMISSION;
} else {
self::$filePermission = 0666;
}
}
$this->load();
}