Restructure project folders and remove obsolete files
All checks were successful
Deploy Spot / deploy (push) Successful in 34s
All checks were successful
Deploy Spot / deploy (push) Successful in 34s
This commit is contained in:
23
lib/Geo.php
23
lib/Geo.php
@@ -4,26 +4,29 @@ namespace Franzz\Spot;
|
||||
use Franzz\Objects\PhpObject;
|
||||
use \Settings;
|
||||
|
||||
class Geo extends PhpObject {
|
||||
abstract class Geo extends PhpObject {
|
||||
protected const EXT = '';
|
||||
|
||||
const GEO_FOLDER = '../geo/';
|
||||
const GEO_FOLDER = 'geo';
|
||||
const OPT_SIMPLE = 'simplification';
|
||||
|
||||
protected $asTracks;
|
||||
protected $sFilePath;
|
||||
protected array $asTracks;
|
||||
protected string $sFilePath;
|
||||
|
||||
public function __construct($sCodeName) {
|
||||
public function __construct(string $sCodeName) {
|
||||
parent::__construct(get_class($this), Settings::DEBUG, PhpObject::MODE_HTML);
|
||||
$this->sFilePath = self::getFilePath($sCodeName);
|
||||
$this->sFilePath = self::getBackEndFilePath($sCodeName);
|
||||
$this->asTracks = array();
|
||||
}
|
||||
|
||||
public static function getFilePath($sCodeName) {
|
||||
return self::GEO_FOLDER.$sCodeName.static::EXT;
|
||||
//Access from backend
|
||||
public static function getBackendFilePath(string $sCodeName) {
|
||||
return '../resources/'.self::GEO_FOLDER.'/'.$sCodeName.static::EXT;
|
||||
}
|
||||
|
||||
public static function getDistFilePath($sCodeName) {
|
||||
return 'geo/'.$sCodeName.static::EXT;
|
||||
//Access from frontend (/public/geo is a symlink of /resources/geo)
|
||||
public static function getFrontendFilePath(string $sCodeName) {
|
||||
return self::GEO_FOLDER.'/'.$sCodeName.static::EXT;
|
||||
}
|
||||
|
||||
public function getLog() {
|
||||
|
||||
Reference in New Issue
Block a user