Started to convert code to PHP5 using public/private/protected/static and __construct() method, got rid of =& when constructing objects. Improved documentation in many places. Commented out functions that are no longer in use. Got rid of double-copy operations when checking for errors (e.g. $foo = $r = myMethod()). Tweaked code here and there to fit coding conventions.
This commit is contained in:
parent
8b979c9f76
commit
bb00be70bb
36 changed files with 1920 additions and 1455 deletions
|
@ -2,53 +2,61 @@
|
|||
define('ACCESS_TYPE', 'restore');
|
||||
|
||||
/**
|
||||
* @author $Author: $
|
||||
* @author Tomas Hlava <th@red2head.com>
|
||||
* @author Paul Baranowski <paul@paulbaranowski.org>
|
||||
* @version $Revision: $
|
||||
* @package Campcaster
|
||||
* @subpackage StorageServer
|
||||
* @copyright 2006 MDLF, Inc.
|
||||
* @license http://www.gnu.org/licenses/gpl.txt
|
||||
* @link http://www.campware.org
|
||||
*/
|
||||
class Restore {
|
||||
/**
|
||||
* string - name of logfile
|
||||
* Name of logfile
|
||||
* @var string
|
||||
*/
|
||||
var $logFile;
|
||||
private $logFile;
|
||||
|
||||
/**
|
||||
* string - session id
|
||||
* session id
|
||||
* @var string
|
||||
*/
|
||||
var $sessid;
|
||||
private $sessid;
|
||||
|
||||
/**
|
||||
* string - token
|
||||
* @var string
|
||||
*/
|
||||
var $token;
|
||||
/**
|
||||
* string - name of statusfile
|
||||
*/
|
||||
var $statusFile;
|
||||
/**
|
||||
* string - name of temporary directory, to here extract the backup tarball
|
||||
*/
|
||||
var $tmpDir;
|
||||
private $token;
|
||||
|
||||
/**
|
||||
* string - loglevel
|
||||
* Name of statusfile
|
||||
* @var string
|
||||
*/
|
||||
var $loglevel = 'warn';
|
||||
#var $loglevel = 'debug';
|
||||
private $statusFile;
|
||||
|
||||
/**
|
||||
* greenbox object reference
|
||||
* Name of temporary directory, to here extract the backup tarball
|
||||
* @var string
|
||||
*/
|
||||
var $gb;
|
||||
private $tmpDir;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $loglevel = 'warn';
|
||||
#private $loglevel = 'debug';
|
||||
|
||||
/**
|
||||
* @var GreenBox
|
||||
*/
|
||||
private $gb;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param GreenBox $gb
|
||||
* greenbox object reference
|
||||
*/
|
||||
function Restore (&$gb) {
|
||||
public function __construct(&$gb) {
|
||||
$this->gb =& $gb;
|
||||
$this->token = null;
|
||||
$this->logFile = $this->gb->bufferDir.'/'.ACCESS_TYPE.'.log';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue