src/ShopBundle/objects/db/TShopArticleReview.class.php
public function LoadFromRowProtected($aRow)
    {
        $whitelist = $this->getFieldWhitelistForLoadByRow();
        $safeData = [];
        foreach ($aRow as $key => $val) {
            if (\in_array($key, $whitelist, true)) {
                $safeData[$key] = $val;
            }
        }
        $user = TdbDataExtranetUser::GetInstance();
        if ($user->IsLoggedIn()) {
            $safeData['data_extranet_user_id'] = $user->id;
        }
        $this->LoadFromRow($safeData);
    }
public function LoadFromRowProtected($aRow)
    {
        $whitelist = $this->getFieldWhitelistForLoadByRow();
        $safeData = [];
        foreach ($aRow as $key => $val) {
            if (\in_array($key, $whitelist, true)) {
                $safeData[$key] = $val;
            }
        }
        $user = TdbDataExtranetUser::GetInstance();
        if ($user->IsLoggedIn()) {
            $safeData['data_extranet_user_id'] = $user->id;
        }
        $this->LoadFromRow($safeData);
    }
public function LoadFromRowProtected ( $ aRow ) { $ whitelist = $ this -> getFieldWhitelistForLoadByRow ( ) ; $ safeData = [ ] ; foreach ( $ aRow as $ key => $ val ) { if ( \ in_array ( $ key , $ whitelist , true ) ) { $ safeData [ $ key ] = $ val ; } } $ user = TdbDataExtranetUser :: GetInstance ( ) ; if ( $ user -> IsLoggedIn ( ) ) { $ safeData [ 'data_extranet_user_id' ] = $ user -> id ; } $ this -> LoadFromRow ( $ safeData ) ; }
load data from row, only allowing user-changeable fields.

@param array $aRow
load data from row only allowing user - changeable fields .