Shikiryu_Backup/app/code/Transport/Abstract.php

26 lines
616 B
PHP
Raw Normal View History

2015-07-03 00:00:30 +02:00
<?php
2015-07-10 19:07:14 +02:00
namespace Shikiryu\Backup\Transport;
use Shikiryu\Backup\Backup\BackupAbstract;
abstract class TransportAbstract
2015-07-09 00:46:17 +02:00
{
2015-07-03 00:00:30 +02:00
2015-07-09 00:46:17 +02:00
protected $backup;
protected $config;
2015-07-10 19:07:14 +02:00
public function __construct(BackupAbstract $backup)
2015-07-09 00:46:17 +02:00
{
$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
}