function serviceDeleteProfileData($iProfileId)
{
$iProfileId = (int) $iProfileId;
if (!$iProfileId) {
return false;
}
// delete entries which belongs to particular author
$aDataEntries = $this->_oDb->getEntriesByAuthor($iProfileId);
foreach ($aDataEntries as $iEntryId) {
if ($this->_oDb->deleteEntryByIdAndOwner($iEntryId, $iProfileId, false)) {
$this->onEventDeleted($iEntryId);
}
}
// delete from list of fans/admins
$this->_oDb->removeFanFromAllEntries($iProfileId);
$this->_oDb->removeAdminFromAllEntries($iProfileId);
}