source/Core/Smarty/Plugin/Emos.php
protected function _setEmosBillingArray($sBillingId = "", $sCustomerNumber = "", $iTotal = 0, $sCountry = "", $sCip = "", $sCity = "")
    {
        /******************* prepare data *************************************/
        /* md5 the customer id to fullfill requirements of german datenschutzgeesetz */
        $sCustomerNumber = md5($sCustomerNumber);

        $sCountry = $this->_emos_DataFormat($sCountry);
        $sCip = $this->_emos_DataFormat($sCip) ;
        $sCity = $this->_emos_DataFormat($sCity);

        /* get a / separated location stzring for later drilldown */
        $ort = "";
        if ($sCountry) {
            $ort .= "$sCountry/";
        }

        if ($sCip) {
            $ort .= getStr()->substr($sCip, 0, 1)."/".getStr()->substr($sCip, 0, 2)."/";
        }

        if ($sCity) {
            $ort .= "$sCity/";
        }

        if ($sCip) {
            $ort.=$sCip;
        }

        $this->_billing = [$sBillingId, $sCustomerNumber, $ort, $iTotal];
    }
protected function _setEmosBillingArray($sBillingId = "", $sCustomerNumber = "", $iTotal = 0, $sCountry = "", $sCip = "", $sCity = "")
    {
        /******************* prepare data *************************************/
        /* md5 the customer id to fullfill requirements of german datenschutzgeesetz */
        $sCustomerNumber = md5($sCustomerNumber);

        $sCountry = $this->_emos_DataFormat($sCountry);
        $sCip = $this->_emos_DataFormat($sCip) ;
        $sCity = $this->_emos_DataFormat($sCity);

        /* get a / separated location stzring for later drilldown */
        $ort = "";
        if ($sCountry) {
            $ort .= "$sCountry/";
        }

        if ($sCip) {
            $ort .= getStr()->substr($sCip, 0, 1)."/".getStr()->substr($sCip, 0, 2)."/";
        }

        if ($sCity) {
            $ort .= "$sCity/";
        }

        if ($sCip) {
            $ort.=$sCip;
        }

        $this->_billing = [$sBillingId, $sCustomerNumber, $ort, $iTotal];
    }
protected function _setEmosBillingArray ( $ sBillingId = "" , $ sCustomerNumber = "" , $ iTotal = 0 , $ sCountry = "" , $ sCip = "" , $ sCity = "" ) { /******************* prepare data *************************************/ /* md5 the customer id to fullfill requirements of german datenschutzgeesetz */ $ sCustomerNumber = md5 ( $ sCustomerNumber ) ; $ sCountry = $ this -> _emos_DataFormat ( $ sCountry ) ; $ sCip = $ this -> _emos_DataFormat ( $ sCip ) ; $ sCity = $ this -> _emos_DataFormat ( $ sCity ) ; /* get a / separated location stzring for later drilldown */ $ ort = "" ; if ( $ sCountry ) { $ ort .= "$sCountry/" ; } if ( $ sCip ) { $ ort .= getStr ( ) -> substr ( $ sCip , 0 , 1 ) . "/" . getStr ( ) -> substr ( $ sCip , 0 , 2 ) . "/" ; } if ( $ sCity ) { $ ort .= "$sCity/" ; } if ( $ sCip ) { $ ort .= $ sCip ; } $ this -> _billing = [ $ sBillingId , $ sCustomerNumber , $ ort , $ iTotal ] ; }
set a emosBillingArray

@param string $sBillingId      billing id
@param string $sCustomerNumber customer number
@param int    $iTotal          total number
@param string $sCountry        customer country title
@param string $sCip            customer ip
@param string $sCity           customer city title
set a emosBillingArray