Admin page: delete feed / project

This commit is contained in:
2020-04-13 22:50:37 +02:00
parent 1d1a6f63a6
commit 73713d477b
12 changed files with 138 additions and 36 deletions

View File

@@ -176,4 +176,15 @@ class Project extends PhpObject {
return $bResult;
}
public function delete() {
$sDesc = '';
if($this->getProjectId() > 0) {
$bSuccess = $this->oDb->deleteRow(self::PROJ_TABLE, $this->getProjectId());
if(!$bSuccess) $sDesc = $this->oDb->getLastError();
}
else $sDesc = 'Error while setting project: no project ID';
return $sDesc;
}
}