mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-25 11:18:51 +02:00
Added a basic show part info with new design. Not finished yet...
This commit is contained in:
parent
f8bd1458d3
commit
f0bea8ff4d
22 changed files with 7883 additions and 25 deletions
|
@ -69,14 +69,11 @@ abstract class NamedDBElement extends DBElement
|
|||
|
||||
/**
|
||||
* Returns the last time when the element was modified.
|
||||
* @param $formatted bool When true, the date gets formatted with the locale and timezone settings.
|
||||
* When false, the raw value from the DB is returned.
|
||||
* @return string The time of the last edit.
|
||||
*/
|
||||
public function getLastModified(bool $formatted = true) : string
|
||||
public function getLastModified() : \DateTime
|
||||
{
|
||||
//TODO
|
||||
return "TODO";
|
||||
return $this->lastModified;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -85,10 +82,10 @@ abstract class NamedDBElement extends DBElement
|
|||
* When false, the raw value from the DB is returned.
|
||||
* @return string The creation time of the part.
|
||||
*/
|
||||
public function getDatetimeAdded(bool $formatted = true) : string
|
||||
public function getDatetimeAdded() : \DateTime
|
||||
{
|
||||
//TODO
|
||||
return "TODO";
|
||||
return $this->addedDate;
|
||||
}
|
||||
|
||||
/********************************************************************************
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue