source/Application/Model/User.php
private function deleteItemById($id, $key, $className)
    {
        /** @var \OxidEsales\Eshop\Core\Model\BaseModel $modelObject */
        $modelObject = oxNew($className);

        if ($modelObject->load($id)) {
            if ($this->_blMallUsers) {
                $modelObject->setIsDerived(false);
            }
            $modelObject->delete();
        }
    }
private function deleteItemById($id, $key, $className)
    {
        /** @var \OxidEsales\Eshop\Core\Model\BaseModel $modelObject */
        $modelObject = oxNew($className);

        if ($modelObject->load($id)) {
            if ($this->_blMallUsers) {
                $modelObject->setIsDerived(false);
            }
            $modelObject->delete();
        }
    }
private function deleteItemById ( $ id , $ key , $ className ) { /** @var \OxidEsales\Eshop\Core\Model\BaseModel $modelObject */ $ modelObject = oxNew ( $ className ) ; if ( $ modelObject -> load ( $ id ) ) { if ( $ this -> _blMallUsers ) { $ modelObject -> setIsDerived ( false ) ; } $ modelObject -> delete ( ) ; } }
Callback function for array_walk to delete items using the delete method of the given model class

@param string  $id        Id of the item to be deleted
@param integer $key       Key of the array
@param string  $className Model class to be used
Callback function for array_walk to delete items using the delete method of the given model class