本文整理汇总了PHP中backupbuddy_core::getCallingFunctionName方法的典型用法代码示例。如果您正苦于以下问题:PHP backupbuddy_core::getCallingFunctionName方法的具体用法?PHP backupbuddy_core::getCallingFunctionName怎么用?PHP backupbuddy_core::getCallingFunctionName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类backupbuddy_core
的用法示例。
在下文中一共展示了backupbuddy_core::getCallingFunctionName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _load_catalog
private static function _load_catalog($force_reload = false, $get_contents_only = false)
{
if (is_object(self::$_catalogObj) && true !== $force_reload) {
return self::$_catalogObj;
}
if (true === $force_reload) {
unset(self::$_catalogObj);
}
$read_only = false;
$ignore_lock = self::_fileoptions_lock_ignore_timeout_value();
if (true === $get_contents_only) {
$read_only = true;
$ignore_lock = true;
}
require_once pb_backupbuddy::plugin_path() . '/classes/fileoptions.php';
$catalogObj = new pb_backupbuddy_fileoptions(backupbuddy_core::getLogDirectory() . 'live/catalog-' . pb_backupbuddy::$options['log_serial'] . '.txt', $read_only, $ignore_lock, $create_file = true, $live_mode = true);
if (true !== ($result = $catalogObj->is_ok())) {
pb_backupbuddy::status('error', 'Error #239239034. Fatal error. Unable to create or access CATALOG fileoptions file. Details: `' . $result . '`. Waiting a moment before ending. Read only: `' . $read_only . '`, ignore lock: `' . $ignore_lock . '`, contents only: `' . $get_contents_only . '`. Caller: `' . backupbuddy_core::getCallingFunctionName() . '`.');
sleep(3);
// Wait a moment to give time for temporary issues to resolve.
return false;
}
// Set defaults.
if (!is_array($catalogObj->options)) {
$catalogObj->options = array();
}
//$catalogObj->options = array_merge( self::$_catalogDefaults, $catalogObj->options );
// Getting contents only.
if (true === $get_contents_only) {
return $catalogObj->options;
}
// Set class variables with references to object and options within.
self::$_catalogObj =& $catalogObj;
self::$_catalog =& $catalogObj->options;
return true;
}