mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-30 05:24:28 +02:00
Added Image files from old Part-DB.
This commit is contained in:
parent
b2e0e4b7ad
commit
2e3713cd5e
2090 changed files with 344 additions and 20 deletions
|
@ -89,21 +89,12 @@ class Footprint extends PartsContainingDBElement
|
|||
|
||||
/**
|
||||
* Get the filename of the picture (absolute path from filesystem root)
|
||||
*
|
||||
* @param bool $absolute If set to true, then the absolute filename (from system root) is returned.
|
||||
* If set to false, then the path relative to Part-DB folder is returned.
|
||||
* @return string @li the absolute path to the picture (from filesystem root), as a UNIX path (with slashes)
|
||||
* @return string the saved filename in the DB
|
||||
* @li an empty string if there is no picture
|
||||
*/
|
||||
public function getFilename(bool $absolute = true) : string
|
||||
public function getFilename() : string
|
||||
{
|
||||
if ($absolute == true) {
|
||||
//TODO
|
||||
throw new \Exception("Not Implemented yet...");
|
||||
//return str_replace('%BASE%', BASE, $this->db_data['filename']);
|
||||
} else {
|
||||
return $this->filename;
|
||||
}
|
||||
return $this->filename;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue