mirror of
https://github.com/standardebooks/web.git
synced 2025-07-18 12:26:39 -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
|
@ -109,10 +109,10 @@ class Collection{
|
|||
}
|
||||
|
||||
/**
|
||||
* @throws Exceptions\ValidationException
|
||||
* @throws Exceptions\InvalidCollectionException
|
||||
*/
|
||||
public function Validate(): void{
|
||||
$error = new Exceptions\ValidationException();
|
||||
$error = new Exceptions\InvalidCollectionException();
|
||||
|
||||
if(isset($this->Name)){
|
||||
$this->Name = trim($this->Name);
|
||||
|
@ -154,7 +154,7 @@ class Collection{
|
|||
}
|
||||
|
||||
/**
|
||||
* @throws Exceptions\ValidationException
|
||||
* @throws Exceptions\InvalidCollectionException
|
||||
*/
|
||||
public function Create(): void{
|
||||
$this->Validate();
|
||||
|
@ -169,7 +169,7 @@ class Collection{
|
|||
}
|
||||
|
||||
/**
|
||||
* @throws Exceptions\ValidationException
|
||||
* @throws Exceptions\InvalidCollectionException
|
||||
*/
|
||||
public function GetByUrlNameOrCreate(string $urlName): Collection{
|
||||
$result = Db::Query('
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue