Files
spot/lib/Geo.php
Franzz 034d02f042
All checks were successful
Deploy Spot / deploy (push) Successful in 34s
Restructure project folders and remove obsolete files
2026-05-30 01:32:20 +02:00

35 lines
936 B
PHP

<?php
namespace Franzz\Spot;
use Franzz\Objects\PhpObject;
use \Settings;
abstract class Geo extends PhpObject {
protected const EXT = '';
const GEO_FOLDER = 'geo';
const OPT_SIMPLE = 'simplification';
protected array $asTracks;
protected string $sFilePath;
public function __construct(string $sCodeName) {
parent::__construct(get_class($this), Settings::DEBUG, PhpObject::MODE_HTML);
$this->sFilePath = self::getBackEndFilePath($sCodeName);
$this->asTracks = array();
}
//Access from backend
public static function getBackendFilePath(string $sCodeName) {
return '../resources/'.self::GEO_FOLDER.'/'.$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() {
return $this->getCleanMessageStack(PhpObject::NOTICE_TAB);
}
}