function _serviceIsSomebody($sFunc, $iEntryId, $iProfileId = 0) { if (!method_exists($this, $sFunc)) { return false; } if (!$iProfileId) { $iProfileId = getLoggedId(); } if (!($aDataEntry = $this->_oDb->getEntryByIdAndOwner($iEntryId, 0, true))) { return false; } return $this->{$sFunc}($aDataEntry, $iProfileId); }