Add beginning of a project management system to placeholders

This commit is contained in:
Alex Cabal 2024-12-14 19:03:04 -06:00
parent e56de4b19d
commit adfe07aad9
42 changed files with 717 additions and 118 deletions

View file

@ -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('