BxDolTwigModule::onEventCreate PHP Method

onEventCreate() public method

================================== events
public onEventCreate ( $iEntryId, $sStatus, $aDataEntry = [] )
    function onEventCreate($iEntryId, $sStatus, $aDataEntry = array())
    {
        if ('approved' == $sStatus) {
            $this->reparseTags($iEntryId);
            $this->reparseCategories($iEntryId);
        }
        if (BxDolModule::getInstance('BxWmapModule')) {
            BxDolService::call('wmap', 'response_entry_add', array($this->_oConfig->getUri(), $iEntryId));
        }
        $this->_oDb->createForum($aDataEntry, $this->_oDb->getProfileNickNameById($this->_iProfileId));
        $oAlert = new BxDolAlerts($this->_sPrefix, 'add', $iEntryId, $this->_iProfileId, array('Status' => $sStatus));
        $oAlert->alert();
    }