source/Application/Model/User.php
public function setUpdateKey($blReset = false)
    {
        $utilsObject = $this->getUtilsObjectInstance();
        $sUpKey = $blReset ? '' : $utilsObject->generateUId();
        $iUpTime = $blReset ? 0 : Registry::getUtilsDate()->getTime() + $this->getUpdateLinkTerm();

        // generating key
        $this->oxuser__oxupdatekey = new \OxidEsales\Eshop\Core\Field($sUpKey, Field::T_RAW);

        // setting expiration time for 6 hours
        $this->oxuser__oxupdateexp = new \OxidEsales\Eshop\Core\Field($iUpTime, Field::T_RAW);

        // saving
        $this->save();
    }
public function setUpdateKey($blReset = false)
    {
        $utilsObject = $this->getUtilsObjectInstance();
        $sUpKey = $blReset ? '' : $utilsObject->generateUId();
        $iUpTime = $blReset ? 0 : Registry::getUtilsDate()->getTime() + $this->getUpdateLinkTerm();

        // generating key
        $this->oxuser__oxupdatekey = new \OxidEsales\Eshop\Core\Field($sUpKey, Field::T_RAW);

        // setting expiration time for 6 hours
        $this->oxuser__oxupdateexp = new \OxidEsales\Eshop\Core\Field($iUpTime, Field::T_RAW);

        // saving
        $this->save();
    }
public function setUpdateKey ( $ blReset = false ) { $ utilsObject = $ this -> getUtilsObjectInstance ( ) ; $ sUpKey = $ blReset ? '' : $ utilsObject -> generateUId ( ) ; $ iUpTime = $ blReset ? 0 : Registry :: getUtilsDate ( ) -> getTime ( ) + $ this -> getUpdateLinkTerm ( ) ; // generating key $ this -> oxuser__oxupdatekey = new \ OxidEsales \ Eshop \ Core \ Field ( $ sUpKey , Field :: T_RAW ) ; // setting expiration time for 6 hours $ this -> oxuser__oxupdateexp = new \ OxidEsales \ Eshop \ Core \ Field ( $ iUpTime , Field :: T_RAW ) ; // saving $ this -> save ( ) ; }
Generates or resets and saves users update key

@param bool $blReset marker to reset update info
Generates or resets and saves users update key