public/wordpress/wp-content/plugins/backupbuddy/destinations/live/live_periodic.php
/* _load_tables()
	 *
	 * Loads the tables signatures into a class variable for usage by functions.
	 *
	 */
_load_tables()
Loads the tables signatures into a class variable for usage by functions.
_load_tables () Loads the tables signatures into a class variable for usage by functions .
private static function _load_tables( $force_reload = false, $get_contents_only = false ) {
		if ( is_object( self::$_tablesObj ) && ( true !== $force_reload ) ) {
			return self::$_tablesObj;
		}
		if ( true === $force_reload ) {
			unset( self::$_tablesObj );
		}
		$read_only = false;
		$ignore_lock = self::_fileoptions_lock_ignore_timeout_value();
		if ( true === $get_contents_only ) {
			$read_only = true;
			$ignore_lock = false;
		}
		require_once( pb_backupbuddy::plugin_path() . '/classes/fileoptions.php' );
		$tablesObj = new pb_backupbuddy_fileoptions( backupbuddy_core::getLogDirectory() . 'live/tables-' . pb_backupbuddy::$options['log_serial'] . '.txt', $read_only, $ignore_lock, $create_file = true, $live_mode = true );
		if ( true !== ( $result = $tablesObj->is_ok() ) ) {
			pb_backupbuddy::status( 'error', 'Error #435554390. Unable to create or access fileoptions file. Details: `' . $result . '`. Waiting a moment before ending.' );
			sleep( 3 ); 
			return false;
		}
		if ( ! is_array( $tablesObj->options ) ) {
			$tablesObj->options = array();
		}
		if ( true === $get_contents_only ) {
			return $tablesObj->options;
		}
		self::$_tablesObj = &$tablesObj;
		self::$_tables = &$tablesObj->options;
		return true;
	}
private static function _load_tables ( $ force_reload = false , $ get_contents_only = false ) { if ( is_object ( self :: $ _tablesObj ) && ( true !== $ force_reload ) ) { return self :: $ _tablesObj ; } if ( true === $ force_reload ) { unset ( self :: $ _tablesObj ) ; } $ read_only = false ; $ ignore_lock = self :: _fileoptions_lock_ignore_timeout_value ( ) ; if ( true === $ get_contents_only ) { $ read_only = true ; $ ignore_lock = false ; } require_once ( pb_backupbuddy :: plugin_path ( ) . '/classes/fileoptions.php' ) ; $ tablesObj = new pb_backupbuddy_fileoptions ( backupbuddy_core :: getLogDirectory ( ) . 'live/tables-' . pb_backupbuddy :: $ options [ 'log_serial' ] . '.txt' , $ read_only , $ ignore_lock , $ create_file = true , $ live_mode = true ) ; if ( true !== ( $ result = $ tablesObj -> is_ok ( ) ) ) { pb_backupbuddy :: status ( 'error' , 'Error #435554390. Unable to create or access fileoptions file. Details: `' . $ result . '`. Waiting a moment before ending.' ) ; sleep ( 3 ) ; return false ; } if ( ! is_array ( $ tablesObj -> options ) ) { $ tablesObj -> options = array ( ) ; } if ( true === $ get_contents_only ) { return $ tablesObj -> options ; } self :: $ _tablesObj = & $ tablesObj ; self :: $ _tables = & $ tablesObj -> options ; return true ; }
_load_tables()
 Loads the tables signatures into a class variable for usage by functions.
_load_tables () Loads the tables signatures into a class variable for usage by functions .
// Wait a moment to give time for temporary issues to resolve. // Set defaults. // Getting contents only. // Set class variables with references to object and options within.