Admin page: delete feed / project
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user