BxDolTwigModule::_serviceIsSomebody PHP Method

_serviceIsSomebody() public method

public _serviceIsSomebody ( $sFunc, $iEntryId, $iProfileId )
    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);
    }