mirror of
https://github.com/standardebooks/web.git
synced 2025-07-22 07:14:59 -04:00
Add beginning of a project management system to placeholders
This commit is contained in:
parent
e56de4b19d
commit
adfe07aad9
42 changed files with 717 additions and 118 deletions
|
@ -23,10 +23,10 @@ class EbookTag extends Tag{
|
|||
// *******
|
||||
|
||||
/**
|
||||
* @throws Exceptions\ValidationException
|
||||
* @throws Exceptions\InvalidEbookTagException
|
||||
*/
|
||||
public function Validate(): void{
|
||||
$error = new Exceptions\ValidationException();
|
||||
$error = new Exceptions\InvalidEbookTagException();
|
||||
|
||||
if(isset($this->Name)){
|
||||
$this->Name = trim($this->Name);
|
||||
|
@ -55,7 +55,7 @@ class EbookTag extends Tag{
|
|||
}
|
||||
|
||||
/**
|
||||
* @throws Exceptions\ValidationException
|
||||
* @throws Exceptions\InvalidEbookTagException
|
||||
*/
|
||||
public function Create(): void{
|
||||
$this->Validate();
|
||||
|
@ -75,7 +75,7 @@ class EbookTag extends Tag{
|
|||
// ***********
|
||||
|
||||
/**
|
||||
* @throws Exceptions\ValidationException
|
||||
* @throws Exceptions\InvalidEbookTagException
|
||||
*/
|
||||
public function GetByNameOrCreate(string $name): EbookTag{
|
||||
$result = Db::Query('
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue