2017-01-12 20:45:01 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
abstract class FileManager {
|
|
|
|
private $fileName;
|
|
|
|
private $localPath = 'files/';
|
2018-09-14 06:14:15 +02:00
|
|
|
|
|
|
|
const PERMISSION_ARTICLE = 'PERMISSION_ARTICLE';
|
|
|
|
const PERMISSION_TICKET = 'PERMISSION_TICKET';
|
|
|
|
const PERMISSION_PROFILE = 'PERMISSION_PROFILE';
|
|
|
|
|
2017-01-12 20:45:01 +01:00
|
|
|
public function setLocalPath($localPath) {
|
|
|
|
$this->localPath = $localPath;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setFileName($fileName) {
|
|
|
|
$this->fileName = $fileName;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getLocalPath() {
|
|
|
|
return $this->localPath;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getFileName() {
|
|
|
|
return $this->fileName;
|
|
|
|
}
|
2018-09-14 06:14:15 +02:00
|
|
|
|
2017-01-12 20:45:01 +01:00
|
|
|
public function getFullFilePath() {
|
|
|
|
return $this->getLocalPath() . $this->getFileName();
|
|
|
|
}
|
2018-09-14 06:14:15 +02:00
|
|
|
}
|