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

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