src/ShopBundle/objects/db/TShopOrderExportLog.class.php
public static function WriteLog($iOrderId, $sData)
    {
        /** @var $oItem TdbShopOrderExportLog */
        $oItem = TdbShopOrderExportLog::GetNewInstance();
        /** @var Request $request */
        $request = \ChameleonSystem\CoreBundle\ServiceLocator::get('request_stack')->getCurrentRequest();
        $ip = $request->getClientIp();
        $aData = array('shop_order_id' => $iOrderId, 'datecreated' => date('Y-m-d H:i:s'), 'ip' => $ip, 'data' => $sData, 'user_session_id' => session_id());
        $oItem->LoadFromRow($aData);
        $oItem->AllowEditByAll(true);
        $oItem->Save();
    }
public static function WriteLog($iOrderId, $sData)
    {
        /** @var $oItem TdbShopOrderExportLog */
        $oItem = TdbShopOrderExportLog::GetNewInstance();
        /** @var Request $request */
        $request = \ChameleonSystem\CoreBundle\ServiceLocator::get('request_stack')->getCurrentRequest();
        $ip = $request->getClientIp();
        $aData = array('shop_order_id' => $iOrderId, 'datecreated' => date('Y-m-d H:i:s'), 'ip' => $ip, 'data' => $sData, 'user_session_id' => session_id());
        $oItem->LoadFromRow($aData);
        $oItem->AllowEditByAll(true);
        $oItem->Save();
    }
public static function WriteLog ( $ iOrderId , $ sData ) { /** @var $oItem TdbShopOrderExportLog */ $ oItem = TdbShopOrderExportLog :: GetNewInstance ( ) ; /** @var Request $request */ $ request = \ ChameleonSystem \ CoreBundle \ ServiceLocator :: get ( 'request_stack' ) -> getCurrentRequest ( ) ; $ ip = $ request -> getClientIp ( ) ; $ aData = array ( 'shop_order_id' => $ iOrderId , 'datecreated' => date ( 'Y-m-d H:i:s' ) , 'ip' => $ ip , 'data' => $ sData , 'user_session_id' => session_id ( ) ) ; $ oItem -> LoadFromRow ( $ aData ) ; $ oItem -> AllowEditByAll ( true ) ; $ oItem -> Save ( ) ; }
write a Log Entry.

@param int    $iOrderId
@param string $sData
write a Log Entry .