當前位置: 首頁>>代碼示例>>PHP>>正文


PHP backupbuddy_core::getCallingFunctionName方法代碼示例

本文整理匯總了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;
 }
開發者ID:arobbins,項目名稱:spellestate,代碼行數:36,代碼來源:live_periodic.php


注:本文中的backupbuddy_core::getCallingFunctionName方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。