2015-07-03 00:00:30 +02:00
|
|
|
<?php
|
|
|
|
|
2015-07-09 00:46:17 +02:00
|
|
|
abstract class Shikiryu_Backup_Transport_Abstract
|
|
|
|
{
|
2015-07-03 00:00:30 +02:00
|
|
|
|
2015-07-09 00:46:17 +02:00
|
|
|
protected $backup;
|
|
|
|
protected $config;
|
|
|
|
|
|
|
|
public function __construct(Shikiryu_Backup_Abstract $backup)
|
|
|
|
{
|
|
|
|
$config = parse_ini_file(dirname(__FILE__).'/../config/config.ini');
|
|
|
|
$classname = get_class($this);
|
|
|
|
$type = substr($classname, strrpos($classname, '_')+1);
|
|
|
|
$this->config = $config[ucfirst(strtolower($type))];
|
|
|
|
$this->backup = $backup;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public abstract function send();
|
2015-07-03 00:00:30 +02:00
|
|
|
}
|